projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39ceb47
)
NULL terminate name in pubtypes sections.
author
Devang Patel
<dpatel@apple.com>
Tue, 2 Feb 2010 03:37:03 +0000
(
03:37
+0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 2 Feb 2010 03:37:03 +0000
(
03:37
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95062
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 7615d619aa024efc1c3fada38f024f51a50b9d63..308fc7ad761004cd35c6477cf71e31fd6f6645e8 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@
-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");