diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-16 20:13:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-16 20:13:34 +0000 |
commit | 73b00947e7db9987f3e779a3b89d4823742691d2 (patch) | |
tree | 820585ad559e865fc156d68ac1de460d3c219284 /lib/Target/X86/X86JITInfo.cpp | |
parent | 00e533043d37e4a5b6783da7e3e29e8e6b240ad5 (diff) | |
download | llvm-73b00947e7db9987f3e779a3b89d4823742691d2.tar.gz llvm-73b00947e7db9987f3e779a3b89d4823742691d2.tar.bz2 llvm-73b00947e7db9987f3e779a3b89d4823742691d2.tar.xz |
Align stubs on 4 byte boundary. This fixes 447.dealII.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86JITInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86JITInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp index fe58ec74a2..0e34fe3b21 100644 --- a/lib/Target/X86/X86JITInfo.cpp +++ b/lib/Target/X86/X86JITInfo.cpp @@ -288,13 +288,13 @@ void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) { bool NotCC = Fn != (void*)(intptr_t)X86CompilationCallback; #endif if (NotCC) { - MCE.startFunctionStub(5); + MCE.startFunctionStub(5, 4); MCE.emitByte(0xE9); MCE.emitWordLE((intptr_t)Fn-MCE.getCurrentPCValue()-4); return MCE.finishFunctionStub(0); } - MCE.startFunctionStub(6); + MCE.startFunctionStub(6, 4); MCE.emitByte(0xE8); // Call with 32 bit pc-rel destination... MCE.emitWordLE((intptr_t)Fn-MCE.getCurrentPCValue()-4); |