diff options
author | Eric Christopher <echristo@apple.com> | 2011-11-07 18:10:17 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-11-07 18:10:17 +0000 |
commit | cc979f9ae6199187546850bedbbfc193aabd2cf6 (patch) | |
tree | dc4589915c273070c46275d5e2bca050e893318e /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 4703a29e4a216dc5121dd0c7ae3a09b20970981f (diff) | |
download | bcm5719-llvm-cc979f9ae6199187546850bedbbfc193aabd2cf6.tar.gz bcm5719-llvm-cc979f9ae6199187546850bedbbfc193aabd2cf6.zip |
Allow for the case where the name of the subprogram is "".
Fixes a self-host error.
llvm-svn: 143970
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 633f216416e..d3414d7be55 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -525,6 +525,7 @@ CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) { } static bool isObjCClass(StringRef Name) { + if (Name == "") return false; return Name[0] == '+' || Name[0] == '-'; } |