diff options
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 8a0220724e..3dbc2c99e7 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -253,11 +253,22 @@ private: explicit CleanupEntry(llvm::BasicBlock *cb) : CleanupBlock(cb) {} + + ~CleanupEntry() { + assert(Blocks.empty() && "Did not empty blocks!"); + assert(BranchFixups.empty() && "Did not empty branch fixups!"); + } + }; /// CleanupEntries - Stack of cleanup entries. llvm::SmallVector<CleanupEntry, 8> CleanupEntries; + typedef llvm::DenseMap<llvm::BasicBlock*, size_t> BlockScopeMap; + + /// BlockScopes - Map of which "cleanup scope" scope basic blocks have. + BlockScopeMap BlockScopes; + public: CodeGenFunction(CodeGenModule &cgm); |