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

Mike Stump mrs at apple.com
Wed Aug 19 11:10:47 PDT 2009


Author: mrs
Date: Wed Aug 19 13:10:47 2009
New Revision: 79438

URL: http://llvm.org/viewvc/llvm-project?rev=79438&view=rev
Log:
One second thought, I think I want to limit this class to just vtable
building activities.

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=79438&r1=79437&r2=79438&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Wed Aug 19 13:10:47 2009
@@ -703,7 +703,7 @@
   return Rtti;
 }
 
-class ABIBuilder {
+class VtableBuilder {
   std::vector<llvm::Constant *> &methods;
   llvm::Type *Ptr8Ty;
   const CXXRecordDecl *Class;
@@ -715,9 +715,9 @@
 
   typedef CXXRecordDecl::method_iterator method_iter;
 public:
-  ABIBuilder(std::vector<llvm::Constant *> &meth,
-             const CXXRecordDecl *c,
-             CodeGenModule &cgm)
+  VtableBuilder(std::vector<llvm::Constant *> &meth,
+                const CXXRecordDecl *c,
+                CodeGenModule &cgm)
     : methods(meth), Class(c), BLayout(cgm.getContext().getASTRecordLayout(c)),
       rtti(cgm.GenerateRtti(c)), VMContext(cgm.getModule().getContext()),
       CGM(cgm) {
@@ -886,7 +886,7 @@
   Offset += LLVMPointerWidth;
   Offset += LLVMPointerWidth;
 
-  ABIBuilder b(methods, RD, CGM);
+  VtableBuilder b(methods, RD, CGM);
 
   // First comes the vtables for all the non-virtual bases...
   b.GenerateVtableForBase(RD, true, false, 0, false);





More information about the cfe-commits mailing list