summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-23 03:11:46 +0000
committerChris Lattner <sabre@nondot.org>2010-01-23 03:11:46 +0000
commitc3f23b84ea42568473d36fd22bb6098634f66cda (patch)
treed4eb03ff5e7b884674989810b1209ac6874e61a4 /llvm/lib/CodeGen/AsmPrinter/DIE.cpp
parentcabb6ff64d65fef4f94b1006a440b939045537c1 (diff)
downloadbcm5719-llvm-c3f23b84ea42568473d36fd22bb6098634f66cda.tar.gz
bcm5719-llvm-c3f23b84ea42568473d36fd22bb6098634f66cda.zip
remove one form of EmitString, just use EmitBytes instead. We must
be careful to add a \0 at the end though, because EmitString didn't do this. llvm-svn: 94277
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIE.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
index 3bdc50d8939..349e0ac40f1 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
@@ -242,7 +242,9 @@ void DIEInteger::print(raw_ostream &O) {
/// EmitValue - Emit string value.
///
void DIEString::EmitValue(DwarfPrinter *D, unsigned Form) const {
- D->getAsm()->EmitString(Str);
+ D->getAsm()->OutStreamer.EmitBytes(Str, /*addrspace*/0);
+ // Emit nul terminator.
+ D->getAsm()->OutStreamer.EmitIntValue(0, 1, /*addrspace*/0);
}
#ifndef NDEBUG
OpenPOWER on IntegriCloud