summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCXX.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-06-30 02:36:12 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-06-30 02:36:12 +0000
commitcfbfe78e9e4a5b95196361a0038e839889ea2257 (patch)
treeb7432ee1195c0fe35ee86eb00bd63b25480a457f /clang/lib/CodeGen/CGCXX.cpp
parente3d025995c4408b8ab2b717c5f08f1f9d967b6f4 (diff)
downloadbcm5719-llvm-cfbfe78e9e4a5b95196361a0038e839889ea2257.tar.gz
bcm5719-llvm-cfbfe78e9e4a5b95196361a0038e839889ea2257.zip
De-ASTContext-ify DeclContext.
Remove ASTContext parameter from DeclContext's methods. This change cascaded down to other Decl's methods and changes to call sites started "escalating". Timings using pre-tokenized "cocoa.h" showed only a ~1% increase in time run between and after this commit. llvm-svn: 74506
Diffstat (limited to 'clang/lib/CodeGen/CGCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGCXX.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp
index 4f9a4caee69..5f3acea767d 100644
--- a/clang/lib/CodeGen/CGCXX.cpp
+++ b/clang/lib/CodeGen/CGCXX.cpp
@@ -323,8 +323,8 @@ static bool canGenerateCXXstructor(const CXXRecordDecl *RD,
if (RD->getNumBases() > 0)
return false;
- for (CXXRecordDecl::field_iterator I = RD->field_begin(Context),
- E = RD->field_end(Context); I != E; ++I) {
+ for (CXXRecordDecl::field_iterator I = RD->field_begin(), E = RD->field_end();
+ I != E; ++I) {
// We don't support ctors for fields that aren't POD.
if (!I->getType()->isPODType())
return false;
OpenPOWER on IntegriCloud