mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
NULL terminate name in pubtypes sections.
llvm-svn: 95062
This commit is contained in:
parent
9f50341a96
commit
38cf687622
@ -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