summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-03-21 20:27:14 +0000
committerAnders Carlsson <andersca@mac.com>2010-03-21 20:27:14 +0000
commit4b2411e9d2877d0c35d981e6b9499b62ac32c6c7 (patch)
tree384d526e90cb81f53ca49cbf9c5db9af6a587716 /clang/lib/CodeGen
parent46b7987f85435f5fb1d572075245132bf64b9a22 (diff)
downloadbcm5719-llvm-4b2411e9d2877d0c35d981e6b9499b62ac32c6c7.tar.gz
bcm5719-llvm-4b2411e9d2877d0c35d981e6b9499b62ac32c6c7.zip
AddThunk should take a const reference.
llvm-svn: 99140
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index df30f479acc..d11cbb4b802 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud