[llvm-branch-commits] [llvm-branch] r90178 - in /llvm/branches/Apple/Zoidberg: lib/CodeGen/AsmPrinter/DwarfDebug.cpp test/FrontendObjC/2009-11-30-Objc-ID.m

Devang Patel dpatel at apple.com
Mon Nov 30 16:20:49 PST 2009


Author: dpatel
Date: Mon Nov 30 18:20:49 2009
New Revision: 90178

URL: http://llvm.org/viewvc/llvm-project?rev=90178&view=rev
Log:
Merge r90172 & 90176 from trunk.

Added:
    llvm/branches/Apple/Zoidberg/test/FrontendObjC/2009-11-30-Objc-ID.m
Modified:
    llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=90178&r1=90177&r2=90178&view=diff

==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Nov 30 18:20:49 2009
@@ -814,7 +814,7 @@
   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.)

Added: llvm/branches/Apple/Zoidberg/test/FrontendObjC/2009-11-30-Objc-ID.m
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/test/FrontendObjC/2009-11-30-Objc-ID.m?rev=90178&view=auto

==============================================================================
--- llvm/branches/Apple/Zoidberg/test/FrontendObjC/2009-11-30-Objc-ID.m (added)
+++ llvm/branches/Apple/Zoidberg/test/FrontendObjC/2009-11-30-Objc-ID.m Mon Nov 30 18:20:49 2009
@@ -0,0 +1,14 @@
+// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
+// RUN:     llc --disable-fp-elim -o %t.s -O0 
+// RUN: grep id %t.s | grep DW_AT_name
+ at interface A
+-(id) blah;
+ at end
+
+ at implementation A
+-(id)blah {
+  int i = 1;
+  i++;
+  return i;
+}
+ at end





More information about the llvm-branch-commits mailing list