[llvm-commits] [llvm] r143970 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Eric Christopher echristo at apple.com
Mon Nov 7 10:10:17 PST 2011


Author: echristo
Date: Mon Nov  7 12:10:17 2011
New Revision: 143970

URL: http://llvm.org/viewvc/llvm-project?rev=143970&view=rev
Log:
Allow for the case where the name of the subprogram is "".

Fixes a self-host error.

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=143970&r1=143969&r2=143970&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Nov  7 12:10:17 2011
@@ -525,6 +525,7 @@
 }
 
 static bool isObjCClass(StringRef Name) {
+  if (Name == "") return false;
   return Name[0] == '+' || Name[0] == '-';
 }
 





More information about the llvm-commits mailing list