]> granicus.if.org Git - clang/commitdiff
AddThunk should take a const reference.
authorAnders Carlsson <andersca@mac.com>
Sun, 21 Mar 2010 20:27:14 +0000 (20:27 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 21 Mar 2010 20:27:14 +0000 (20:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99140 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp

index df30f479acc8664e59464d4e89b26989da547c06..d11cbb4b802d3d4e1c36a931d61560da6fa4855a 100644 (file)
@@ -1240,7 +1240,7 @@ private:
   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 @@ public:
   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;