From 182f383db1782af752ecaf607fdff72a8542088b Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Thu, 10 Dec 2009 00:02:42 +0000 Subject: Ensure we only generate one terminate handler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90998 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/CodeGen/CodeGenFunction.h') diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 7ef3ad0422..cf267c4167 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -422,6 +422,8 @@ private: /// getByrefValueFieldNumber - Given a declaration, returns the LLVM field /// number that holds the value. unsigned getByRefValueLLVMField(const ValueDecl *VD) const; + + llvm::BasicBlock *TerminateHandler; public: CodeGenFunction(CodeGenModule &cgm); @@ -552,6 +554,7 @@ public: /// EmitEndEHSpec - Emit the end of the exception spec. void EmitEndEHSpec(const Decl *D); + /// getTerminateHandler - Return a handler that just calls terminate. llvm::BasicBlock *getTerminateHandler(); const llvm::Type *ConvertTypeForMem(QualType T); -- cgit v1.2.3-18-g5258