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:
8996f44
)
Correctly write out binary data as chars, before they're cast to ints.
author
Misha Brukman
<brukman+llvm@gmail.com>
Wed, 28 May 2003 18:27:19 +0000
(18:27 +0000)
committer
Misha Brukman
<brukman+llvm@gmail.com>
Wed, 28 May 2003 18:27:19 +0000
(18:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6385
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineCodeEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineCodeEmitter.cpp
b/lib/CodeGen/MachineCodeEmitter.cpp
index ae4d7cecec6b6fdade0cf365e90f676cd53caf49..e67b4aaa0218d775e37f3ba99a29430e4394ffd3 100644
(file)
--- 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) {