summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-11-30 23:56:56 +0000
committerDevang Patel <dpatel@apple.com>2009-11-30 23:56:56 +0000
commitae466efe2eef39aaadb34aaa68132f12627aa5a0 (patch)
tree3c10590c8a45ebf230c0fe537ce27d9fb38dca16 /llvm/lib
parentf786fb13f5c8db70ed07f40110adcf9a4fc6550a (diff)
downloadbcm5719-llvm-ae466efe2eef39aaadb34aaa68132f12627aa5a0.tar.gz
bcm5719-llvm-ae466efe2eef39aaadb34aaa68132f12627aa5a0.zip
If pointer type has a name then do not ignore the name.
llvm-svn: 90172
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 9dad574aa2e..c2e1e0503a8 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -815,7 +815,7 @@ void DwarfDebug::constructTypeDIE(CompileUnit *DW_Unit, DIE &Buffer,
addType(DW_Unit, &Buffer, FromTy);
// Add name if not anonymous or intermediate type.
- if (!Name.empty() && Tag != dwarf::DW_TAG_pointer_type)
+ if (!Name.empty())
addString(&Buffer, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name);
// Add size if non-zero (derived types might be zero-sized.)
OpenPOWER on IntegriCloud