diff options
author | Eric Christopher <echristo@apple.com> | 2012-03-02 01:57:52 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-03-02 01:57:52 +0000 |
commit | 50e266135edb896e037c1a8f22a2fafac84eea86 (patch) | |
tree | d5b11a6755541141946d36371cc7a1af951cfbb2 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 70e2968866aa09b4c164db77d310f5d43a588227 (diff) |
If the linkage name doesn't exist we're supposed to emit a reference
to the string table for the function name, not the function name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 58e40e17c5..9da9e0e737 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2132,10 +2132,9 @@ void DwarfDebug::emitDebugInlineInfo() { StringRef Name = SP.getName(); Asm->OutStreamer.AddComment("MIPS linkage name"); - if (LName.empty()) { - Asm->OutStreamer.EmitBytes(Name, 0); - Asm->OutStreamer.EmitIntValue(0, 1, 0); // nul terminator. - } else + if (LName.empty()) + Asm->EmitSectionOffset(getStringPoolEntry(Name), DwarfStrSectionSym); + else Asm->EmitSectionOffset(getStringPoolEntry(getRealLinkageName(LName)), DwarfStrSectionSym); |