[cfe-commits] r105171 - /cfe/trunk/lib/CodeGen/CGVTables.cpp

Anders Carlsson andersca at mac.com
Sun May 30 11:23:41 PDT 2010


Author: andersca
Date: Sun May 30 13:23:41 2010
New Revision: 105171

URL: http://llvm.org/viewvc/llvm-project?rev=105171&view=rev
Log:
Remove unused parameter to FinalOverriders::PropagateOverrider.

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

Modified: cfe/trunk/lib/CodeGen/CGVTables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVTables.cpp?rev=105171&r1=105170&r2=105171&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVTables.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVTables.cpp Sun May 30 13:23:41 2010
@@ -151,7 +151,6 @@
   /// and we want to override B::f with C::f, we also need to override A::f with
   /// C::f.
   void PropagateOverrider(const CXXMethodDecl *OldMD,
-                          BaseSubobject NewBase,
                           uint64_t OverriderOffsetInLayoutClass,
                           const CXXMethodDecl *NewMD,
                           SubobjectOffsetsMapTy &Offsets);
@@ -243,7 +242,7 @@
       continue;
 
     // First, propagate the overrider.
-    PropagateOverrider(MD, Base, OffsetInLayoutClass, MD, Offsets);
+    PropagateOverrider(MD, OffsetInLayoutClass, MD, Offsets);
 
     // Add the overrider as the final overrider of itself.
     OverriderInfo& Overrider = OverridersMap[std::make_pair(Base, MD)];
@@ -366,7 +365,6 @@
 }
 
 void FinalOverriders::PropagateOverrider(const CXXMethodDecl *OldMD,
-                                         BaseSubobject NewBase,
                                          uint64_t OverriderOffsetInLayoutClass,
                                          const CXXMethodDecl *NewMD,
                                          SubobjectOffsetsMapTy &Offsets) {
@@ -415,8 +413,8 @@
       Overrider.Method = NewMD;
       
       // And propagate it further.
-      PropagateOverrider(OverriddenMD, NewBase, OverriderOffsetInLayoutClass,
-                         NewMD, Offsets);
+      PropagateOverrider(OverriddenMD, OverriderOffsetInLayoutClass, NewMD,
+                         Offsets);
     }
   }
 }





More information about the cfe-commits mailing list