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 | 44bfcf0f97e52ac9545d35cafb8abca845565886 (patch) | |
| tree | 2ae45fe2ae0737a7afa47695491ed875b527b663 /clang/lib/CodeGen/CGCXXTemp.cpp | |
| parent | 8936009a919775af9f32c0172d9a871e9873344b (diff) | |
| download | bcm5719-llvm-44bfcf0f97e52ac9545d35cafb8abca845565886.tar.gz bcm5719-llvm-44bfcf0f97e52ac9545d35cafb8abca845565886.zip | |
Add PushConditionalTempDestruction/PopConditionalTempDestruction.
llvm-svn: 72835
Diffstat (limited to 'clang/lib/CodeGen/CGCXXTemp.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGCXXTemp.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGCXXTemp.cpp b/clang/lib/CodeGen/CGCXXTemp.cpp index 4e20b74ed59..b7bc6b70334 100644 --- a/clang/lib/CodeGen/CGCXXTemp.cpp +++ b/clang/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(); +} + |

