summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-03 02:36:40 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-03 02:36:40 +0000
commit0e1e7632bceed2c38028e1f222915a74fce338f5 (patch)
tree587d98f06ff8701ea95704026e66c679f9c72878 /clang/lib/CodeGen
parent9f98f7a9e5af11d29dec80428d2767ca455f68fb (diff)
downloadbcm5719-llvm-0e1e7632bceed2c38028e1f222915a74fce338f5.tar.gz
bcm5719-llvm-0e1e7632bceed2c38028e1f222915a74fce338f5.zip
Add the global decl to the Thunk struct.
llvm-svn: 90398
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index e6b63836f8b..389373e215e 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/lib/CodeGen/CGVtable.cpp
@@ -62,12 +62,14 @@ private:
Thunk()
: Index(0) { }
- Thunk(uint64_t Index, const ThunkAdjustment &Adjustment)
- : Index(Index), Adjustment(Adjustment) { }
+ Thunk(uint64_t Index, GlobalDecl GD, const ThunkAdjustment &Adjustment)
+ : Index(Index), GD(GD), Adjustment(Adjustment) { }
/// Index - The index in the vtable.
uint64_t Index;
-
+
+ GlobalDecl GD;
+
/// Adjustment - The thunk adjustment.
ThunkAdjustment Adjustment;
};
@@ -847,7 +849,7 @@ bool VtableBuilder::OverrideMethod(GlobalDecl GD, llvm::Constant *m,
VirtualAdjustment);
if (!isPure && !ThisAdjustment.isEmpty())
- Thunks[GD] = Thunk(i, ThisAdjustment);
+ Thunks[GD] = Thunk(i, GD, ThisAdjustment);
return true;
}
@@ -858,7 +860,7 @@ bool VtableBuilder::OverrideMethod(GlobalDecl GD, llvm::Constant *m,
ThunkAdjustment ThisAdjustment(NonVirtualAdjustment, 0);
if (!isPure)
- Thunks[GD] = Thunk(i, ThisAdjustment);
+ Thunks[GD] = Thunk(i, GD, ThisAdjustment);
}
return true;
}
OpenPOWER on IntegriCloud