mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +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);
|
||||
|
||||
// Emit the string itself.
|
||||
Asm->OutStreamer.EmitBytes(Entries[i].second->getKey(), 0/*addrspace*/);
|
||||
Asm->OutStreamer.EmitZeros(1, 0);
|
||||
Asm->OutStreamer.EmitBytes(StringRef(Entries[i].second->getKeyData(),
|
||||
Entries[i].second->getKeyLength()+1),
|
||||
0/*addrspace*/);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user