diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-23 03:11:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-23 03:11:46 +0000 |
commit | 4cf202ba066a1310d8968c8d069787254934e59b (patch) | |
tree | c11be4e2c2e98a26772d0e2778384080638a2a0b /lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | 4fe5d72765121893f77139889958d4f5e5ca69c5 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIE.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp index 3bdc50d893..349e0ac40f 100644 --- a/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/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 |