diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-30 02:35:26 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-30 02:35:26 +0000 |
commit | ddcd132a5bb1cb70a0e381e4b150dac5d4296547 (patch) | |
tree | 138caac2a0af5ad9ca8fd4fd822807caa785071d /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | 8a803cc351583371297b9b02e617dd3636b8a092 (diff) | |
download | bcm5719-llvm-ddcd132a5bb1cb70a0e381e4b150dac5d4296547.tar.gz bcm5719-llvm-ddcd132a5bb1cb70a0e381e4b150dac5d4296547.zip |
Remove the ASTContext parameter from the getBody() methods of Decl and subclasses.
Timings showed no significant difference before and after the commit.
llvm-svn: 74504
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index ac0f46efe9e..8cda4ec836c 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -670,7 +670,7 @@ void Sema::InstantiateFunctionDefinition(SourceLocation PointOfInstantiation, if (Function->isInvalidDecl()) return; - assert(!Function->getBody(Context) && "Already instantiated!"); + assert(!Function->getBody() && "Already instantiated!"); // Find the function body that we'll be substituting. const FunctionDecl *PatternDecl = 0; @@ -680,7 +680,7 @@ void Sema::InstantiateFunctionDefinition(SourceLocation PointOfInstantiation, PatternDecl = Function->getInstantiatedFromMemberFunction(); Stmt *Pattern = 0; if (PatternDecl) - Pattern = PatternDecl->getBody(Context, PatternDecl); + Pattern = PatternDecl->getBody(PatternDecl); if (!Pattern) return; @@ -863,7 +863,7 @@ void Sema::PerformPendingImplicitInstantiations() { PendingImplicitInstantiations.pop(); if (FunctionDecl *Function = dyn_cast<FunctionDecl>(Inst.first)) - if (!Function->getBody(Context)) + if (!Function->getBody()) InstantiateFunctionDefinition(/*FIXME:*/Inst.second, Function); // FIXME: instantiation static member variables |