1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

One more try.

llvm-svn: 30992
This commit is contained in:
Evan Cheng 2006-10-16 23:44:08 +00:00
parent c6aa794a41
commit 36ab7976a0

View File

@ -256,7 +256,8 @@ TargetJITInfo::LazyResolverFn
X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
JITCompilerFunction = F;
#if !defined(__x86_64__)
#if (defined(__i386__) || defined(i386) || defined(_M_IX86)) && \
!defined(_MSC_VER) && !defined(__x86_64__)
unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0;
union {
unsigned u[3];
@ -279,11 +280,12 @@ 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 defined(__x86_64__)
bool NotCC = Fn != (void*)(intptr_t)X86CompilationCallback;
#else
#if (defined(__i386__) || defined(i386) || defined(_M_IX86)) && \
!defined(_MSC_VER) && !defined(__x86_64__)
bool NotCC = (Fn != (void*)(intptr_t)X86CompilationCallback &&
Fn != (void*)(intptr_t)X86CompilationCallback_SSE);
#else
bool NotCC = Fn != (void*)(intptr_t)X86CompilationCallback;
#endif
if (NotCC) {
MCE.startFunctionStub(5);