Kill off the last Destroy method in the AST library
llvm-svn: 109378
This commit is contained in:
parent
b412e174db
commit
a9b2dbc1a4
|
@ -181,8 +181,6 @@ public:
|
|||
ID.AddPointer(Specifier);
|
||||
}
|
||||
|
||||
void Destroy(ASTContext &Context);
|
||||
|
||||
/// \brief Dump the nested name specifier to standard output to aid
|
||||
/// in debugging.
|
||||
void dump(const LangOptions &LO);
|
||||
|
|
|
@ -176,11 +176,6 @@ NestedNameSpecifier::print(llvm::raw_ostream &OS,
|
|||
OS << "::";
|
||||
}
|
||||
|
||||
void NestedNameSpecifier::Destroy(ASTContext &Context) {
|
||||
this->~NestedNameSpecifier();
|
||||
Context.Deallocate((void *)this);
|
||||
}
|
||||
|
||||
void NestedNameSpecifier::dump(const LangOptions &LO) {
|
||||
print(llvm::errs(), PrintingPolicy(LO));
|
||||
}
|
||||
|
|
|
@ -1417,12 +1417,6 @@ Sema::InstantiateClassTemplateSpecialization(
|
|||
TSK,
|
||||
Complain);
|
||||
|
||||
for (unsigned I = 0, N = Matched.size(); I != N; ++I) {
|
||||
// FIXME: Implement TemplateArgumentList::Destroy!
|
||||
// if (Matched[I].first != Pattern)
|
||||
// Matched[I].second->Destroy(Context);
|
||||
}
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue