]> granicus.if.org Git - clang/commitdiff
Cleanup.
authorMike Stump <mrs@apple.com>
Tue, 18 Aug 2009 22:04:08 +0000 (22:04 +0000)
committerMike Stump <mrs@apple.com>
Tue, 18 Aug 2009 22:04:08 +0000 (22:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79374 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCXX.cpp

index 7355846f6abc42d6d681a27b100345b0910560eb..ecde2ad1928721da4b612b7906e1fc595861542d 100644 (file)
@@ -710,6 +710,8 @@ class ABIBuilder {
   llvm::Constant *rtti;
   llvm::LLVMContext &VMContext;
   CodeGenModule &CGM;  // Per-module state.
+
+  typedef CXXRecordDecl::method_iterator method_iter;
 public:
   ABIBuilder(std::vector<llvm::Constant *> &meth,
              const CXXRecordDecl *c,
@@ -720,11 +722,10 @@ public:
   }
 
   void GenerateVcalls(const CXXRecordDecl *RD) {
-    typedef CXXRecordDecl::method_iterator meth_iter;
     llvm::Constant *m;
 
     // FIXME: audit order
-    for (meth_iter mi = RD->method_begin(),
+    for (method_iter mi = RD->method_begin(),
            me = RD->method_end(); mi != me; ++mi) {
       if (mi->isVirtual()) {
         // FIXME: vcall: offset for virtual base for this function
@@ -735,10 +736,9 @@ public:
   }
 
   void GenerateMethods(const CXXRecordDecl *RD) {
-    typedef CXXRecordDecl::method_iterator meth_iter;
     llvm::Constant *m;
 
-    for (meth_iter mi = RD->method_begin(), me = RD->method_end(); mi != me;
+    for (method_iter mi = RD->method_begin(), me = RD->method_end(); mi != me;
          ++mi) {
       if (mi->isVirtual()) {
         m = CGM.GetAddrOfFunction(GlobalDecl(*mi));