diff options
author | Anders Carlsson <andersca@mac.com> | 2010-03-21 20:27:14 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-03-21 20:27:14 +0000 |
commit | 9d734f39f85e352c39370ca3a5fd15446f285a63 (patch) | |
tree | f340e05264e249f27fb52e1db6077a8ecfc7ba48 /lib/CodeGen/CGVtable.cpp | |
parent | 8682bdae7e3db4e5d7dd957754923bbdf75fc166 (diff) |
AddThunk should take a const reference.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |