aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiate.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-17 19:47:42 +0000
committerChris Lattner <sabre@nondot.org>2011-02-17 19:47:42 +0000
commitd8e54990ade0dd5566f8e3aa2e62def08753d1e9 (patch)
tree3aea63bb20bfd5b4747f837927dc951b2668b6fc /lib/Sema/SemaTemplateInstantiate.cpp
parenta70062ff988eb1fc4a159e463a2a3de5155b7f6a (diff)
Inline LocalInstantiationScope::getInstantiationOf into its one
client, making room for future hacking. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiate.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp
index 0ad9f7c53f..41e44ad6d1 100644
--- a/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/lib/Sema/SemaTemplateInstantiate.cpp
@@ -2166,17 +2166,6 @@ bool Sema::Subst(const TemplateArgumentLoc *Args, unsigned NumArgs,
return Instantiator.TransformTemplateArguments(Args, NumArgs, Result);
}
-Decl *LocalInstantiationScope::getInstantiationOf(const Decl *D) {
- llvm::PointerUnion<Decl *, DeclArgumentPack *> *Found= findInstantiationOf(D);
- assert(Found);
-
- if (Found->is<Decl *>())
- return Found->get<Decl *>();
-
- return (*Found->get<DeclArgumentPack *>())[
- SemaRef.ArgumentPackSubstitutionIndex];
-}
-
llvm::PointerUnion<Decl *, LocalInstantiationScope::DeclArgumentPack *> *
LocalInstantiationScope::findInstantiationOf(const Decl *D) {
for (LocalInstantiationScope *Current = this; Current;