mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
One more try.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30992 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -256,7 +256,8 @@ TargetJITInfo::LazyResolverFn
|
|||||||
X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
|
X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
|
||||||
JITCompilerFunction = 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;
|
unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0;
|
||||||
union {
|
union {
|
||||||
unsigned u[3];
|
unsigned u[3];
|
||||||
@ -279,11 +280,12 @@ X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
|
|||||||
void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
|
void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
|
||||||
// Note, we cast to intptr_t here to silence a -pedantic warning that
|
// Note, we cast to intptr_t here to silence a -pedantic warning that
|
||||||
// complains about casting a function pointer to a normal pointer.
|
// complains about casting a function pointer to a normal pointer.
|
||||||
#if defined(__x86_64__)
|
#if (defined(__i386__) || defined(i386) || defined(_M_IX86)) && \
|
||||||
bool NotCC = Fn != (void*)(intptr_t)X86CompilationCallback;
|
!defined(_MSC_VER) && !defined(__x86_64__)
|
||||||
#else
|
|
||||||
bool NotCC = (Fn != (void*)(intptr_t)X86CompilationCallback &&
|
bool NotCC = (Fn != (void*)(intptr_t)X86CompilationCallback &&
|
||||||
Fn != (void*)(intptr_t)X86CompilationCallback_SSE);
|
Fn != (void*)(intptr_t)X86CompilationCallback_SSE);
|
||||||
|
#else
|
||||||
|
bool NotCC = Fn != (void*)(intptr_t)X86CompilationCallback;
|
||||||
#endif
|
#endif
|
||||||
if (NotCC) {
|
if (NotCC) {
|
||||||
MCE.startFunctionStub(5);
|
MCE.startFunctionStub(5);
|
||||||
|
Reference in New Issue
Block a user