diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-02 19:14:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-02 19:14:47 +0000 |
commit | d3f0aefc33965d3d0ca6f92af4ebaea354b063c4 (patch) | |
tree | a930b341d61cfa8a4c28505803970a2b270946a2 /lib/Target/Alpha/AlphaCodeEmitter.cpp | |
parent | 43b429b05989075b60693d57395c99b0ad789f8d (diff) |
Fix a purely hypothetical problem (for now): emitWord emits in the host
byte format. This doesn't work when using the code emitter in a cross target
environment. Since the code emitter is only really used by the JIT, this
isn't a current problem, but if we ever start emitting .o files, it would be.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaCodeEmitter.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaCodeEmitter.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Target/Alpha/AlphaCodeEmitter.cpp b/lib/Target/Alpha/AlphaCodeEmitter.cpp index dfb7820cae..a04cd37adc 100644 --- a/lib/Target/Alpha/AlphaCodeEmitter.cpp +++ b/lib/Target/Alpha/AlphaCodeEmitter.cpp @@ -55,10 +55,6 @@ namespace { void emitInstruction(const MachineInstr &MI); - /// emitWord - write a 32-bit word to memory at the current PC - /// - void emitWord(unsigned w) { MCE.emitWord(w); } - /// getBinaryCodeForInstr - This function, generated by the /// CodeEmitterGenerator using TableGen, produces the binary encoding for /// machine instructions. @@ -117,7 +113,7 @@ void AlphaCodeEmitter::emitBasicBlock(MachineBasicBlock &MBB) { unsigned Opcode = MI.getOpcode(); switch(MI.getOpcode()) { default: - emitWord(getBinaryCodeForInstr(*I)); + MCE.emitWordLE(getBinaryCodeForInstr(*I)); break; case Alpha::ALTENT: case Alpha::PCLABEL: |