From: Anders Carlsson Date: Sun, 21 Mar 2010 20:27:14 +0000 (+0000) Subject: AddThunk should take a const reference. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d734f39f85e352c39370ca3a5fd15446f285a63;p=clang AddThunk should take a const reference. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99140 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index df30f479ac..d11cbb4b80 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -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;