diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-10-16 22:53:28 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-10-16 22:53:28 +0000 |
commit | 348b00dc49c71b1f8e830d14e8af53d0c0024678 (patch) | |
tree | 451cf0bfcc87bc6e9a8105bc316961aba3170b22 /lib/Target/X86/X86JITInfo.cpp | |
parent | 5956922a2d22dc46523078e35de7dc648a1db172 (diff) | |
download | llvm-348b00dc49c71b1f8e830d14e8af53d0c0024678.tar.gz llvm-348b00dc49c71b1f8e830d14e8af53d0c0024678.tar.bz2 llvm-348b00dc49c71b1f8e830d14e8af53d0c0024678.tar.xz |
Unbreak x86-64 build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86JITInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86JITInfo.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp index 027c2e7a8c..713579e6bb 100644 --- a/lib/Target/X86/X86JITInfo.cpp +++ b/lib/Target/X86/X86JITInfo.cpp @@ -256,6 +256,7 @@ TargetJITInfo::LazyResolverFn X86JITInfo::getLazyResolverFunction(JITCompilerFn F) { JITCompilerFunction = F; +#if !defined(__x86_64__) unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0; union { unsigned u[3]; @@ -270,6 +271,7 @@ X86JITInfo::getLazyResolverFunction(JITCompilerFn F) { return X86CompilationCallback_SSE; } } +#endif return X86CompilationCallback; } @@ -277,8 +279,13 @@ X86JITInfo::getLazyResolverFunction(JITCompilerFn F) { void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) { // Note, we cast to intptr_t here to silence a -pedantic warning that // complains about casting a function pointer to a normal pointer. - if (Fn != (void*)(intptr_t)X86CompilationCallback && - Fn != (void*)(intptr_t)X86CompilationCallback_SSE) { +#if defined(__x86_64__) + bool NotCC = Fn != (void*)(intptr_t)X86CompilationCallback; +#else + bool NotCC = (Fn != (void*)(intptr_t)X86CompilationCallback && + Fn != (void*)(intptr_t)X86CompilationCallback_SSE); +#endif + if (NotCC) { MCE.startFunctionStub(5); MCE.emitByte(0xE9); MCE.emitWordLE((intptr_t)Fn-MCE.getCurrentPCValue()-4); |