mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 19:02:35 +00:00
Take advantage of the zero byte in StringMap when emitting dwarf stringpool entries.
llvm-svn: 144184
This commit is contained in:
parent
b017bc6c32
commit
64e040aef6
@ -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…
x
Reference in New Issue
Block a user