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
This commit is contained in:
Eric Christopher 2012-03-02 01:57:52 +00:00
parent 70e2968866
commit 50e266135e

View File

@ -2132,10 +2132,9 @@ void DwarfDebug::emitDebugInlineInfo() {
StringRef Name = SP.getName(); StringRef Name = SP.getName();
Asm->OutStreamer.AddComment("MIPS linkage name"); Asm->OutStreamer.AddComment("MIPS linkage name");
if (LName.empty()) { if (LName.empty())
Asm->OutStreamer.EmitBytes(Name, 0); Asm->EmitSectionOffset(getStringPoolEntry(Name), DwarfStrSectionSym);
Asm->OutStreamer.EmitIntValue(0, 1, 0); // nul terminator. else
} else
Asm->EmitSectionOffset(getStringPoolEntry(getRealLinkageName(LName)), Asm->EmitSectionOffset(getStringPoolEntry(getRealLinkageName(LName)),
DwarfStrSectionSym); DwarfStrSectionSym);