aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-02-07 23:50:39 +0000
committerAnders Carlsson <andersca@mac.com>2009-02-07 23:50:39 +0000
commitc71c845fe77ee1f891d60232ec320912d88557ee (patch)
tree6840ef596be59af3874b6de10924f5e0843ad47c /lib/CodeGen/CodeGenFunction.h
parent0d5c6851393d260dfb5ab0420b50adc173e1c549 (diff)
Add support for emitting cleanup blocks. Make EmitCompoundStatement emit cleanup blocks if necessary
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index 1f037600f5..8a0220724e 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -151,6 +151,10 @@ public:
}
};
+ /// EmitCleanupBlocks - Takes the old cleanup stack size and emits the cleanup
+ /// blocks that have been added.
+ void EmitCleanupBlocks(size_t OldCleanupStackSize);
+
private:
/// LabelIDs - Track arbitrary ids assigned to labels for use in
/// implementing the GCC address-of-label extension and indirect
@@ -762,6 +766,9 @@ private:
llvm::Value* EmitAsmInput(const AsmStmt &S, TargetInfo::ConstraintInfo Info,
const Expr *InputExpr, std::string &ConstraintStr);
+ /// EmitCleanupBlock - emits a single cleanup block.
+ void EmitCleanupBlock();
+
};
} // end namespace CodeGen
} // end namespace clang