mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 22:55:15 +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");
|
||||
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user