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
This commit is contained in:
Douglas Gregor
2010-07-25 18:17:45 +00:00
parent 5b11d49a7c
commit b412e174db
38 changed files with 17 additions and 777 deletions

View File

@@ -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