]> granicus.if.org Git - clang/commitdiff
Rename MaybeEmitVtable to EmitVTableRelatedData in preparation for making it emit...
authorAnders Carlsson <andersca@mac.com>
Tue, 23 Mar 2010 04:15:00 +0000 (04:15 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 23 Mar 2010 04:15:00 +0000 (04:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99251 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp
lib/CodeGen/CGVtable.h
lib/CodeGen/CodeGenModule.cpp

index aea7d66620e4b1523ef75d520e5a54dbacce4500..49eea982434d0b966ab059cd5cfe58bd0c415da3 100644 (file)
@@ -3784,7 +3784,7 @@ llvm::GlobalVariable *CodeGenVTables::getVtable(const CXXRecordDecl *RD) {
   return Vtable;
 }
 
-void CodeGenVTables::MaybeEmitVtable(GlobalDecl GD) {
+void CodeGenVTables::EmitVTableRelatedData(GlobalDecl GD) {
   const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
   const CXXRecordDecl *RD = MD->getParent();
 
index 8b5ccdd988f6bc35954db63ac22c9cde69e3e318..f3574987fa20786a617a4eb7d65a2ed269e60e1c 100644 (file)
@@ -238,7 +238,9 @@ public:
   
   llvm::GlobalVariable *getVTT(const CXXRecordDecl *RD);
   
-  void MaybeEmitVtable(GlobalDecl GD);
+  // EmitVTableRelatedData - Will emit any thunks that the global decl might
+  // have, as well as the vtable itself if the global decl is the key function.
+  void EmitVTableRelatedData(GlobalDecl GD);
 
   /// GenerateClassData - Generate all the class data requires to be generated
   /// upon definition of a KeyFunction.  This includes the vtable, the
index 1450bdddac8e42b772417e50ed33ceb27eed0635..50ac7a31fca7aa5cc3548fc59099a6268d6e0375 100644 (file)
@@ -715,7 +715,7 @@ void CodeGenModule::EmitGlobalDefinition(GlobalDecl GD) {
                                  "Generating code for declaration");
   
   if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D)) {
-    getVTables().MaybeEmitVtable(GD);
+    getVTables().EmitVTableRelatedData(GD);
     if (MD->isVirtual() && MD->isOutOfLine() &&
         (!isa<CXXDestructorDecl>(D) || GD.getDtorType() != Dtor_Base)) {
       if (isa<CXXDestructorDecl>(D)) {