[cfe-commits] r99140 - /cfe/trunk/lib/CodeGen/CGVtable.cpp

Anders Carlsson andersca at mac.com
Sun Mar 21 13:27:14 PDT 2010


Author: andersca
Date: Sun Mar 21 15:27:14 2010
New Revision: 99140

URL: http://llvm.org/viewvc/llvm-project?rev=99140&view=rev
Log:
AddThunk should take a const reference.

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

Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=99140&r1=99139&r2=99140&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Sun Mar 21 15:27:14 2010
@@ -1240,7 +1240,7 @@
   MethodThunksMapTy MethodThunks;
   
   /// AddThunk - Add a thunk for the given method.
-  void AddThunk(const CXXMethodDecl *MD, ThunkInfo &Thunk);
+  void AddThunk(const CXXMethodDecl *MD, const ThunkInfo &Thunk);
   
   /// ComputeThisAdjustments - Compute the 'this' pointer adjustments for the
   /// part of the vtable we're currently building.
@@ -1357,7 +1357,7 @@
   void dumpLayout(llvm::raw_ostream&);
 };
 
-void VtableBuilder::AddThunk(const CXXMethodDecl *MD, ThunkInfo &Thunk) {
+void VtableBuilder::AddThunk(const CXXMethodDecl *MD, const ThunkInfo &Thunk) {
   if (isBuildingConstructorVtable())
     return;
 





More information about the cfe-commits mailing list