mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
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:
parent
70e2968866
commit
50e266135e
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user