AddThunk should take a const reference.

llvm-svn: 99140
This commit is contained in:
Anders Carlsson 2010-03-21 20:27:14 +00:00
parent 46b7987f85
commit 4b2411e9d2
1 changed files with 2 additions and 2 deletions

View 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;