summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-03-02 01:57:52 +0000
committerEric Christopher <echristo@apple.com>2012-03-02 01:57:52 +0000
commit7772531567a37ec85bc62a1db2ebb91761d98cc8 (patch)
tree4a72c197f82a3b2ca5c494521ccd6529e07e76d4 /llvm/lib
parentf9e9d330199680204d88e589f0b20c14d1843511 (diff)
downloadbcm5719-llvm-7772531567a37ec85bc62a1db2ebb91761d98cc8.tar.gz
bcm5719-llvm-7772531567a37ec85bc62a1db2ebb91761d98cc8.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 58e40e17c52..9da9e0e737b 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud