diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-05-16 00:41:26 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-05-16 00:41:26 +0000 |
commit | dc237b52bc916c5156dcdadf143e73d97a5c0ccf (patch) | |
tree | b4d160d1cfefa2d8d8ff2f4af20a4ff1f5b4233b /clang/lib/CodeGen/CodeGenFunction.h | |
parent | ff1596c2a16390e4680aec99ac733c811493e7aa (diff) | |
download | bcm5719-llvm-dc237b52bc916c5156dcdadf143e73d97a5c0ccf.tar.gz bcm5719-llvm-dc237b52bc916c5156dcdadf143e73d97a5c0ccf.zip |
Cleanup: Use a member variable to store the SourceLocation for EH code.
rdar://problem/13888152
llvm-svn: 181957
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 5a7c305c646..8917a90bbfb 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -844,9 +844,7 @@ public: /// PopCleanupBlock - Will pop the cleanup entry on the stack and /// process all branch fixups. - /// \param EHLoc - Optional debug location for EH code. - void PopCleanupBlock(bool FallThroughIsBranchThrough = false, - SourceLocation EHLoc=SourceLocation()); + void PopCleanupBlock(bool FallThroughIsBranchThrough = false); /// DeactivateCleanupBlock - Deactivates the given cleanup block. /// The block cannot be reactivated. Pops it if it's the top of the @@ -967,9 +965,7 @@ public: /// PopCleanupBlocks - Takes the old cleanup stack size and emits /// the cleanup blocks that have been added. - /// \param EHLoc - Optional debug location for EH code. - void PopCleanupBlocks(EHScopeStack::stable_iterator OldCleanupStackSize, - SourceLocation EHLoc=SourceLocation()); + void PopCleanupBlocks(EHScopeStack::stable_iterator OldCleanupStackSize); void ResolveBranchFixups(llvm::BasicBlock *Target); @@ -1339,6 +1335,10 @@ private: /// The current lexical scope. LexicalScope *CurLexicalScope; + /// The current source location that should be used for exception + /// handling code. + SourceLocation CurEHLocation; + /// ByrefValueInfoMap - For each __block variable, contains a pair of the LLVM /// type as well as the field number that contains the actual data. llvm::DenseMap<const ValueDecl *, std::pair<llvm::Type *, |