summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-12-10 00:02:42 +0000
committerMike Stump <mrs@apple.com>2009-12-10 00:02:42 +0000
commitf5cbb08c4b7646eb0ef92950ef0be75f26ac7522 (patch)
treec743b5f1f66fad94153b2f2209d6afcecdee7d71 /clang/lib/CodeGen/CodeGenFunction.h
parent3b60f034f9f850ad2e92fd966f6dda419c91b3b8 (diff)
downloadbcm5719-llvm-f5cbb08c4b7646eb0ef92950ef0be75f26ac7522.tar.gz
bcm5719-llvm-f5cbb08c4b7646eb0ef92950ef0be75f26ac7522.zip
Ensure we only generate one terminate handler.
llvm-svn: 90998
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 7ef3ad0422f..cf267c41676 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/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);
OpenPOWER on IntegriCloud