diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-28 18:27:19 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-28 18:27:19 +0000 |
commit | eae77de8690d9e53a695ae0286e289266716772e (patch) | |
tree | 0f7bd4de94c095ee8ef11f6dd1b95cefc847657d /lib/CodeGen/MachineCodeEmitter.cpp | |
parent | 8996f44f7abf1a2a0f1bb74d9e109327eda8d177 (diff) |
Correctly write out binary data as chars, before they're cast to ints.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r-- | lib/CodeGen/MachineCodeEmitter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp index ae4d7cecec..e67b4aaa02 100644 --- a/lib/CodeGen/MachineCodeEmitter.cpp +++ b/lib/CodeGen/MachineCodeEmitter.cpp @@ -129,6 +129,7 @@ namespace { void emitByte(unsigned char B) { if (MCE) MCE->emitByte(B); + actual << B; actual.flush(); values[counter] = (unsigned int) B; if (++counter % 4 == 0 && counter != 0) { @@ -136,9 +137,7 @@ namespace { for (unsigned i=0; i<4; ++i) { if (values[i] < 16) o << "0"; o << values[i] << " "; - actual << values[i]; } - actual.flush(); o << std::dec << "\t"; for (unsigned i=0; i<4; ++i) { |