[llvm-commits] [llvm] r84276 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Devang Patel
dpatel at apple.com
Fri Oct 16 14:27:44 PDT 2009
Author: dpatel
Date: Fri Oct 16 16:27:43 2009
New Revision: 84276
URL: http://llvm.org/viewvc/llvm-project?rev=84276&view=rev
Log:
Do not emit name entry for a 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=84276&r1=84275&r2=84276&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Fri Oct 16 16:27:43 2009
@@ -923,7 +923,7 @@
AddType(DW_Unit, &Buffer, FromTy);
// Add name if not anonymous or intermediate type.
- if (Name)
+ if (Name && Tag != dwarf::DW_TAG_pointer_type)
AddString(&Buffer, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name);
// Add size if non-zero (derived types might be zero-sized.)
More information about the llvm-commits
mailing list