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/AlphaJITInfo.cpp | |
parent | 43b429b05989075b60693d57395c99b0ad789f8d (diff) | |
download | external_llvm-d3f0aefc33965d3d0ca6f92af4ebaea354b063c4.zip external_llvm-d3f0aefc33965d3d0ca6f92af4ebaea354b063c4.tar.gz external_llvm-d3f0aefc33965d3d0ca6f92af4ebaea354b063c4.tar.bz2 |
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/AlphaJITInfo.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaJITInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaJITInfo.cpp b/lib/Target/Alpha/AlphaJITInfo.cpp index 6d20ec3..81f5e74 100644 --- a/lib/Target/Alpha/AlphaJITInfo.cpp +++ b/lib/Target/Alpha/AlphaJITInfo.cpp @@ -197,7 +197,7 @@ void *AlphaJITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) { MCE.startFunctionStub(19*4); void* Addr = (void*)(intptr_t)MCE.getCurrentPCValue(); for (int x = 0; x < 19; ++ x) - MCE.emitWord(0); + MCE.emitWordLE(0); EmitBranchToAt(Addr, Fn); DEBUG(std::cerr << "Emitting Stub to " << Fn << " at [" << Addr << "]\n"); return MCE.finishFunctionStub(0); |