[llvm-commits] [llvm-gcc-4.2] r95243 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Wed Feb 3 12:09:41 PST 2010
Author: dpatel
Date: Wed Feb 3 14:09:41 2010
New Revision: 95243
URL: http://llvm.org/viewvc/llvm-project?rev=95243&view=rev
Log:
BINFO_VPTR_FIELD has the virtual base offset (-ve.)
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=95243&r1=95242&r2=95243&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Wed Feb 3 14:09:41 2010
@@ -880,6 +880,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