forked from OSchip/llvm-project
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. llvm-svn: 151873
This commit is contained in:
parent
f9e9d33019
commit
7772531567
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue