[cfe-commits] r90398 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Anders Carlsson
andersca at mac.com
Wed Dec 2 18:36:40 PST 2009
Author: andersca
Date: Wed Dec 2 20:36:40 2009
New Revision: 90398
URL: http://llvm.org/viewvc/llvm-project?rev=90398&view=rev
Log:
Add the global decl to the Thunk struct.
Modified:
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=90398&r1=90397&r2=90398&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Wed Dec 2 20:36:40 2009
@@ -62,12 +62,14 @@
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 @@
VirtualAdjustment);
if (!isPure && !ThisAdjustment.isEmpty())
- Thunks[GD] = Thunk(i, ThisAdjustment);
+ Thunks[GD] = Thunk(i, GD, ThisAdjustment);
return true;
}
@@ -858,7 +860,7 @@
ThunkAdjustment ThisAdjustment(NonVirtualAdjustment, 0);
if (!isPure)
- Thunks[GD] = Thunk(i, ThisAdjustment);
+ Thunks[GD] = Thunk(i, GD, ThisAdjustment);
}
return true;
}
More information about the cfe-commits
mailing list