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 | c778540f9a43d3e9c0a123c2bf202d6d656adbbe (patch) | |
tree | 8ced7136ca43b6728fc582db9da0ac7747a20831 /clang/lib/CodeGen/CGVtable.cpp | |
parent | 0f5e6f88059bec94ec8cfd0ff00bf02face5fdef (diff) | |
download | bcm5719-llvm-c778540f9a43d3e9c0a123c2bf202d6d656adbbe.tar.gz bcm5719-llvm-c778540f9a43d3e9c0a123c2bf202d6d656adbbe.zip |
Add a ThunkAdjustment struct which holds a non-virtual and a virtual adjustment offset. Start using it. General cleanup in Mangle.cpp.
llvm-svn: 89925
Diffstat (limited to 'clang/lib/CodeGen/CGVtable.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGVtable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp index 0c36ef492b3..08690f23a8a 100644 --- a/clang/lib/CodeGen/CGVtable.cpp +++ b/clang/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(), |