mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
Take advantage of the zero byte in StringMap when emitting dwarf stringpool entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f274a5e81
commit
0c45f7d1a7
@ -1937,8 +1937,9 @@ void DwarfDebug::emitDebugStr() {
|
|||||||
Asm->OutStreamer.EmitLabel(Entries[i].second->getValue().first);
|
Asm->OutStreamer.EmitLabel(Entries[i].second->getValue().first);
|
||||||
|
|
||||||
// Emit the string itself.
|
// Emit the string itself.
|
||||||
Asm->OutStreamer.EmitBytes(Entries[i].second->getKey(), 0/*addrspace*/);
|
Asm->OutStreamer.EmitBytes(StringRef(Entries[i].second->getKeyData(),
|
||||||
Asm->OutStreamer.EmitZeros(1, 0);
|
Entries[i].second->getKeyLength()+1),
|
||||||
|
0/*addrspace*/);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user