[llvm-commits] [llvm-gcc-4.2] r61206 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Thu Dec 18 10:29:19 PST 2008
Author: dpatel
Date: Thu Dec 18 12:29:18 2008
New Revision: 61206
URL: http://llvm.org/viewvc/llvm-project?rev=61206&view=rev
Log:
Set struct field offset properly.
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=61206&r1=61205&r2=61206&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Thu Dec 18 12:29:18 2008
@@ -600,7 +600,8 @@
DebugFactory.CreateDerivedType(DW_TAG_member, Unit, MemberName,
Unit, MemLoc.line, NodeSizeInBits(Member),
NodeAlignInBits(FieldNodeType),
- 0, Flags, MemberType);
+ int_bit_position(Member),
+ Flags, MemberType);
EltTys.push_back(DTy);
} else {
DEBUGASSERT(0 && "Unsupported member tree code!");
More information about the llvm-commits
mailing list