[cfe-commits] r78858 - /cfe/trunk/lib/CodeGen/CGCXX.cpp

Mike Stump mrs at apple.com
Wed Aug 12 16:25:18 PDT 2009


Author: mrs
Date: Wed Aug 12 18:25:18 2009
New Revision: 78858

URL: http://llvm.org/viewvc/llvm-project?rev=78858&view=rev
Log:
Cleanup.

Modified:
    cfe/trunk/lib/CodeGen/CGCXX.cpp

Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=78858&r1=78857&r2=78858&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Wed Aug 12 18:25:18 2009
@@ -626,14 +626,15 @@
                                      llvm::Type *Ptr8Ty) {
   typedef CXXRecordDecl::method_iterator meth_iter;
   llvm::Constant *m;
-    for (meth_iter mi = RD->method_begin(),
-           me = RD->method_end(); mi != me; ++mi) {
-      if (mi->isVirtual()) {
-        // FIXME: vcall: offset for virtual base for this function
-        m = llvm::Constant::getNullValue(Ptr8Ty);
-        methods.push_back(m);
-      }
+
+  for (meth_iter mi = RD->method_begin(),
+         me = RD->method_end(); mi != me; ++mi) {
+    if (mi->isVirtual()) {
+      // FIXME: vcall: offset for virtual base for this function
+      m = llvm::Constant::getNullValue(Ptr8Ty);
+      methods.push_back(m);
     }
+  }
 }
 
 void CodeGenFunction::GenerateMethods(std::vector<llvm::Constant *> &methods,
@@ -659,7 +660,6 @@
                                             bool isPrimary,
                                             bool ForVirtualBase,
                    llvm::SmallSet<const CXXRecordDecl *, 32> &IndirectPrimary) {
-  typedef CXXRecordDecl::method_iterator meth_iter;
   llvm::Type *Ptr8Ty;
   Ptr8Ty = llvm::PointerType::get(llvm::Type::Int8Ty, 0);
   llvm::Constant *m = llvm::Constant::getNullValue(Ptr8Ty);





More information about the cfe-commits mailing list