diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-24 16:21:10 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-24 16:21:10 +0000 |
commit | 48a409eb39a0146fe96a076068187002b6dfee0f (patch) | |
tree | 35a44dd217e7a0f8d60195c5e5517380ec063a21 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 3c15b80e217e9fe955adfc14bb9e8a4f12b17d01 (diff) | |
download | bcm5719-llvm-48a409eb39a0146fe96a076068187002b6dfee0f.tar.gz bcm5719-llvm-48a409eb39a0146fe96a076068187002b6dfee0f.zip |
Rename CleanupScope -> DelayedCleanupBlock. No functionality change.
llvm-svn: 89769
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 6d0d81ecfc9..dd26428f819 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -133,17 +133,17 @@ public: /// block. CleanupBlockInfo PopCleanupBlock(); - /// CleanupScope - RAII object that will create a cleanup block and set the + /// DelayedCleanupBlock - RAII object that will create a cleanup block and set the /// insert point to that block. When destructed, it sets the insert point to /// the previous block and pushes a new cleanup entry on the stack. - class CleanupScope { + class DelayedCleanupBlock { CodeGenFunction& CGF; llvm::BasicBlock *CurBB; llvm::BasicBlock *CleanupEntryBB; llvm::BasicBlock *CleanupExitBB; public: - CleanupScope(CodeGenFunction &cgf) + DelayedCleanupBlock(CodeGenFunction &cgf) : CGF(cgf), CurBB(CGF.Builder.GetInsertBlock()), CleanupEntryBB(CGF.createBasicBlock("cleanup")), CleanupExitBB(0) { CGF.Builder.SetInsertPoint(CleanupEntryBB); @@ -155,7 +155,7 @@ public: return CleanupExitBB; } - ~CleanupScope() { + ~DelayedCleanupBlock() { CGF.PushCleanupBlock(CleanupEntryBB, CleanupExitBB); // FIXME: This is silly, move this into the builder. if (CurBB) |