diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-27 22:09:22 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-27 22:09:22 +0000 |
commit | 702b2841a4d26f78ccdeb116fe2b9b9590684990 (patch) | |
tree | 1dfa6d8b941b2557ad048ee6b43b5b5edcaf42e5 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 799ca897e76f0fdbbabcd6f15c5ebb8005571024 (diff) | |
download | bcm5719-llvm-702b2841a4d26f78ccdeb116fe2b9b9590684990.tar.gz bcm5719-llvm-702b2841a4d26f78ccdeb116fe2b9b9590684990.zip |
When destroying temporaries, instead of a custom cleanup use the
generic pushDestroy function.
This would reduce the number of useful declarations in
CGTemporaries.cpp to one. Since CodeGenFunction::EmitCXXTemporary
does not deserve its own file, move it to CGCleanup.cpp and delete
CGTemporaries.cpp.
llvm-svn: 145202
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 740a13e122b..25436562e77 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1781,7 +1781,8 @@ public: void EmitNewArrayInitializer(const CXXNewExpr *E, QualType elementType, llvm::Value *NewPtr, llvm::Value *NumElements); - void EmitCXXTemporary(const CXXTemporary *Temporary, llvm::Value *Ptr); + void EmitCXXTemporary(const CXXTemporary *Temporary, QualType TempType, + llvm::Value *Ptr); llvm::Value *EmitCXXNewExpr(const CXXNewExpr *E); void EmitCXXDeleteExpr(const CXXDeleteExpr *E); |