aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-25 18:17:45 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-25 18:17:45 +0000
commitb412e174db3846ec5aa83ecb8ead7fb54829237c (patch)
treec539a513916e5d7fb983ef42304a1386fe1fbb32 /clang/lib/CodeGen/CodeGenFunction.cpp
parent5b11d49a7c2ea35903004198dd5570afe6ab0529 (diff)
downloadllvm-b412e174db3846ec5aa83ecb8ead7fb54829237c.zip
llvm-b412e174db3846ec5aa83ecb8ead7fb54829237c.tar.gz
llvm-b412e174db3846ec5aa83ecb8ead7fb54829237c.tar.bz2
Remove the vast majority of the Destroy methods from the AST library,
since we aren't going to be calling them ever. llvm-svn: 109377
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 1d0d6a8..eb471ac 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -369,14 +369,6 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn) {
// Emit the standard function epilogue.
FinishFunction(BodyRange.getEnd());
-
- // Destroy the 'this' declaration.
- if (CXXThisDecl)
- CXXThisDecl->Destroy(getContext());
-
- // Destroy the VTT declaration.
- if (CXXVTTDecl)
- CXXVTTDecl->Destroy(getContext());
}
/// ContainsLabel - Return true if the statement contains a label in it. If