summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-25 18:23:53 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-25 18:23:53 +0000
commita9b2dbc1a4b604efb400a503361e73dc4a344e10 (patch)
treee04c7584abc056409690571efb87c610e12dfdea
parentb412e174db3846ec5aa83ecb8ead7fb54829237c (diff)
downloadbcm5719-llvm-a9b2dbc1a4b604efb400a503361e73dc4a344e10.tar.gz
bcm5719-llvm-a9b2dbc1a4b604efb400a503361e73dc4a344e10.zip
Kill off the last Destroy method in the AST library
llvm-svn: 109378
-rw-r--r--clang/include/clang/AST/NestedNameSpecifier.h2
-rw-r--r--clang/lib/AST/NestedNameSpecifier.cpp5
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiate.cpp6
3 files changed, 0 insertions, 13 deletions
diff --git a/clang/include/clang/AST/NestedNameSpecifier.h b/clang/include/clang/AST/NestedNameSpecifier.h
index 1594b090fea..3b25f3bb403 100644
--- a/clang/include/clang/AST/NestedNameSpecifier.h
+++ b/clang/include/clang/AST/NestedNameSpecifier.h
@@ -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);
diff --git a/clang/lib/AST/NestedNameSpecifier.cpp b/clang/lib/AST/NestedNameSpecifier.cpp
index d6594cdfd02..212def8565e 100644
--- a/clang/lib/AST/NestedNameSpecifier.cpp
+++ b/clang/lib/AST/NestedNameSpecifier.cpp
@@ -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));
}
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index da99c7e8c2c..1a7e35b3550 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp
@@ -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;
}
OpenPOWER on IntegriCloud