[llvm-commits] [llvm] r89487 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Devang Patel
dpatel at apple.com
Fri Nov 20 13:05:37 PST 2009
Author: dpatel
Date: Fri Nov 20 15:05:37 2009
New Revision: 89487
URL: http://llvm.org/viewvc/llvm-project?rev=89487&view=rev
Log:
There is no need to emit source location info for DW_TAG_pointer_type.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=89487&r1=89486&r2=89487&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Fri Nov 20 15:05:37 2009
@@ -929,7 +929,7 @@
AddUInt(&Buffer, dwarf::DW_AT_byte_size, 0, Size);
// Add source line info if available and TyDesc is not a forward declaration.
- if (!DTy.isForwardDecl())
+ if (!DTy.isForwardDecl() && Tag != dwarf::DW_TAG_pointer_type)
AddSourceLine(&Buffer, &DTy);
}
More information about the llvm-commits
mailing list