[llvm-commits] [llvm-gcc-4.2] r70968 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Chris Lattner
sabre at nondot.org
Mon May 4 22:10:00 PDT 2009
Author: lattner
Date: Tue May 5 00:10:00 2009
New Revision: 70968
URL: http://llvm.org/viewvc/llvm-project?rev=70968&view=rev
Log:
Fix rdar://6856261 - llvm-gcc generates incorrect (and unnecessary) file and line info for DW_TAG_inheritance dies.
A location with a line # of 0 is not valid, and this isn't useful anyway.
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=70968&r1=70967&r2=70968&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Tue May 5 00:10:00 2009
@@ -607,9 +607,8 @@
// FIXME : name, size, align etc...
DIType DTy =
DebugFactory.CreateDerivedType(DW_TAG_inheritance,
- findRegion(type),"",
- getOrCreateCompileUnit(Loc.file),
- 0,0,0,
+ findRegion(type), "",
+ llvm::DICompileUnit(), 0,0,0,
getINTEGER_CSTVal(BINFO_OFFSET(BInfo)),
0, BaseClass);
EltTys.push_back(DTy);
More information about the llvm-commits
mailing list