]> granicus.if.org Git - clang/commit
Remove the ASTContext parameter from the attribute-related methods of Decl.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 30 Jun 2009 02:34:44 +0000 (02:34 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 30 Jun 2009 02:34:44 +0000 (02:34 +0000)
commit40b598eea1310ec9ed554d56ce3e25b34c585458
tree8e2c3592f8ed4ac239504747ebffb388d5b170d6
parente4f2142d00fa5fdb580c4e2413da91882d955381
Remove the ASTContext parameter from the attribute-related methods of Decl.
The implementations of these methods can Use Decl::getASTContext() to get the ASTContext.

This commit touches a lot of files since call sites for these methods are everywhere.
I used pre-tokenized "carbon.h" and "cocoa.h" headers to do some timings, and there was no real time difference between before the commit and after it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74501 91177308-0d34-0410-b5e6-96231b3b80d8
33 files changed:
include/clang/AST/DeclBase.h
include/clang/AST/Expr.h
lib/AST/ASTContext.cpp
lib/AST/Decl.cpp
lib/AST/DeclBase.cpp
lib/AST/Expr.cpp
lib/Analysis/CFRefCount.cpp
lib/Analysis/CheckDeadStores.cpp
lib/Analysis/CheckObjCDealloc.cpp
lib/Analysis/CheckObjCUnusedIVars.cpp
lib/Analysis/GRExprEngine.cpp
lib/Analysis/GRExprEngineInternalChecks.cpp
lib/CodeGen/CGBuiltin.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGObjCMac.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/Mangle.cpp
lib/Frontend/PCHReaderDecl.cpp
lib/Frontend/PCHWriterDecl.cpp
lib/Sema/JumpDiagnostics.cpp
lib/Sema/Sema.h
lib/Sema/SemaAttr.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaStmt.cpp