[llvm-commits] [dragonegg] r97385 - /dragonegg/trunk/llvm-debug.cpp
Duncan Sands
baldrick at free.fr
Sun Feb 28 05:03:45 PST 2010
Author: baldrick
Date: Sun Feb 28 07:03:45 2010
New Revision: 97385
URL: http://llvm.org/viewvc/llvm-project?rev=97385&view=rev
Log:
Port commit 95243 (dpatel) from llvm-gcc:
BINFO_VPTR_FIELD has the virtual base offset (-ve.)
Modified:
dragonegg/trunk/llvm-debug.cpp
Modified: dragonegg/trunk/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-debug.cpp?rev=97385&r1=97384&r2=97385&view=diff
==============================================================================
--- dragonegg/trunk/llvm-debug.cpp (original)
+++ dragonegg/trunk/llvm-debug.cpp Sun Feb 28 07:03:45 2010
@@ -793,6 +793,8 @@
unsigned Offset = BINFO_OFFSET(BInfo) ?
getINTEGER_CSTVal(BINFO_OFFSET(BInfo))*8 : 0;
+ if (BINFO_VIRTUAL_P (BInfo))
+ Offset = 0 - getINTEGER_CSTVal(BINFO_VPTR_FIELD (BInfo));
// FIXME : name, size, align etc...
DIType DTy =
DebugFactory.CreateDerivedType(DW_TAG_inheritance,
More information about the llvm-commits
mailing list