diff options
author | Anders Carlsson <andersca@mac.com> | 2009-06-04 02:22:12 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-06-04 02:22:12 +0000 |
commit | 1d8475067d5b62ed5a57ba93862e23f3096a8bdd (patch) | |
tree | bb9c73692f3477e1f95740c369e0f19cdb15bd3f /lib/CodeGen/CGCXXTemp.cpp | |
parent | c4ee170b0c71f61fb1dec273d15fb11c29449a88 (diff) |
Add PushConditionalTempDestruction/PopConditionalTempDestruction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXXTemp.cpp')
-rw-r--r-- | lib/CodeGen/CGCXXTemp.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/CodeGen/CGCXXTemp.cpp b/lib/CodeGen/CGCXXTemp.cpp index 4e20b74ed5..b7bc6b7033 100644 --- a/lib/CodeGen/CGCXXTemp.cpp +++ b/lib/CodeGen/CGCXXTemp.cpp @@ -67,3 +67,14 @@ CodeGenFunction::EmitCXXExprWithTemporaries(const CXXExprWithTemporaries *E, return RV; } + +void +CodeGenFunction::PushConditionalTempDestruction() { + // Store the current number of live temporaries. + ConditionalTempDestructionStack.push_back(LiveTemporaries.size()); +} + +void CodeGenFunction::PopConditionalTempDestruction() { + ConditionalTempDestructionStack.pop_back(); +} + |