mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user