mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Add comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1901,6 +1901,7 @@ void DwarfDebug::emitDebugPubTypes() {
|
|||||||
Asm->EmitInt32(Entity->getOffset());
|
Asm->EmitInt32(Entity->getOffset());
|
||||||
|
|
||||||
if (Asm->isVerbose()) Asm->OutStreamer.AddComment("External Name");
|
if (Asm->isVerbose()) Asm->OutStreamer.AddComment("External Name");
|
||||||
|
// Emit the name with a terminating null byte.
|
||||||
Asm->OutStreamer.EmitBytes(StringRef(Name, GI->getKeyLength()+1), 0);
|
Asm->OutStreamer.EmitBytes(StringRef(Name, GI->getKeyLength()+1), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1936,7 +1937,7 @@ void DwarfDebug::emitDebugStr() {
|
|||||||
// Emit a label for reference from debug information entries.
|
// Emit a label for reference from debug information entries.
|
||||||
Asm->OutStreamer.EmitLabel(Entries[i].second->getValue().first);
|
Asm->OutStreamer.EmitLabel(Entries[i].second->getValue().first);
|
||||||
|
|
||||||
// Emit the string itself.
|
// Emit the string itself with a terminating null byte.
|
||||||
Asm->OutStreamer.EmitBytes(StringRef(Entries[i].second->getKeyData(),
|
Asm->OutStreamer.EmitBytes(StringRef(Entries[i].second->getKeyData(),
|
||||||
Entries[i].second->getKeyLength()+1),
|
Entries[i].second->getKeyLength()+1),
|
||||||
0/*addrspace*/);
|
0/*addrspace*/);
|
||||||
|
Reference in New Issue
Block a user