mirror of
https://github.com/intel/llvm.git
synced 2026-01-28 19:43:38 +08:00
Kill off the last Destroy method in the AST library
llvm-svn: 109378
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user