diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-23 17:26:39 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-23 17:26:39 +0000 |
commit | 9834ffbe54788239c8361d3cfe5826fd277ddfb2 (patch) | |
tree | cd5c2a3bbdefed102e290884940fb4fafa807ade /lib/CodeGen/CodeGenFunction.h | |
parent | 4634735e0aeb2371c3f75578978ec89f87651ad4 (diff) |
Add low level support for generating invoke instead of calls.
- No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 8bda453ee7..b3d6a327eb 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -190,6 +190,10 @@ private: /// statement range in current switch instruction. llvm::BasicBlock *CaseRangeBlock; + /// InvokeDest - This is the nearest exception target for calls + /// which can unwind, when exceptions are being used. + llvm::BasicBlock *InvokeDest; + // VLASizeMap - This keeps track of the associated size for each VLA type. // FIXME: Maybe this could be a stack of maps that is pushed/popped as we // enter/leave scopes. @@ -233,6 +237,13 @@ public: ASTContext &getContext() const; CGDebugInfo *getDebugInfo() { return DebugInfo; } + llvm::BasicBlock *getInvokeDest() { return InvokeDest; } + void setInvokeDest(llvm::BasicBlock *B) { InvokeDest = B; } + + //===--------------------------------------------------------------------===// + // Objective-C + //===--------------------------------------------------------------------===// + void GenerateObjCMethod(const ObjCMethodDecl *OMD); void StartObjCMethod(const ObjCMethodDecl *MD, |