diff options
author | Anders Carlsson <andersca@mac.com> | 2009-11-26 02:32:05 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-11-26 02:32:05 +0000 |
commit | a94822e8937eeb340a653b88024f805a07a2d2ee (patch) | |
tree | 34345defe4cddcf4679565313d48d8ba729a22ff /lib/CodeGen/CGVtable.cpp | |
parent | b1a7b65231e86f7da6aacbf00bcdc16c56350e65 (diff) |
Add a ThunkAdjustment struct which holds a non-virtual and a virtual adjustment offset. Start using it. General cleanup in Mangle.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index 0c36ef492b..08690f23a8 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -333,7 +333,8 @@ public: Index_t idx = Index[GD]; Index_t nv_O = i->second.first; Index_t v_O = i->second.second; - submethods[idx] = CGM.BuildThunk(MD, Extern, nv_O, v_O); + submethods[idx] = CGM.BuildThunk(MD, Extern, + ThunkAdjustment(nv_O, v_O)); } Thunks.clear(); for (CovariantThunks_t::iterator i = CovariantThunks.begin(), |