mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-01 19:29:22 +00:00
NULL terminate name in pubtypes sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
39ceb471b7
commit
31acb89c65
@ -2800,7 +2800,7 @@ void DwarfDebug::emitDebugPubTypes() {
|
|||||||
Asm->EmitInt32(Entity->getOffset()); EOL("DIE offset");
|
Asm->EmitInt32(Entity->getOffset()); EOL("DIE offset");
|
||||||
|
|
||||||
if (Asm->VerboseAsm) Asm->OutStreamer.AddComment("External Name");
|
if (Asm->VerboseAsm) Asm->OutStreamer.AddComment("External Name");
|
||||||
Asm->OutStreamer.EmitBytes(StringRef(Name, strlen(Name)), 0);
|
Asm->OutStreamer.EmitBytes(StringRef(Name, GI->getKeyLength()+1), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Asm->EmitInt32(0); EOL("End Mark");
|
Asm->EmitInt32(0); EOL("End Mark");
|
||||||
|
Loading…
Reference in New Issue
Block a user