summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-11-16 20:13:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-11-16 20:13:34 +0000
commitc5e769710eee550ea2132f282c74f4a4fb1b9eeb (patch)
tree05f337bef58083974b6115629096234b33a32984
parent8969ebca44e99c4ef3f787e3b76ebd02bf8e0c96 (diff)
downloadbcm5719-llvm-c5e769710eee550ea2132f282c74f4a4fb1b9eeb.tar.gz
bcm5719-llvm-c5e769710eee550ea2132f282c74f4a4fb1b9eeb.zip
Align stubs on 4 byte boundary. This fixes 447.dealII.
llvm-svn: 31790
-rw-r--r--llvm/lib/Target/X86/X86JITInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86JITInfo.cpp b/llvm/lib/Target/X86/X86JITInfo.cpp
index fe58ec74a25..0e34fe3b216 100644
--- a/llvm/lib/Target/X86/X86JITInfo.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud