mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-07 16:54:48 +00:00
remove extraneous #ifdef's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58006 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d1ce3b48e2
commit
c64bdf6aa5
@ -110,24 +110,20 @@ extern "C" void ARMCompilationCallbackC(intptr_t StubAddr) {
|
||||
// stub with:
|
||||
// ldr pc, [pc,#-4]
|
||||
// <addr>
|
||||
#if defined(__APPLE__)
|
||||
bool ok = sys::Memory::setRangeWritable ((void*)StubAddr, 8);
|
||||
if (!ok)
|
||||
{
|
||||
cerr << "ERROR: Unable to mark stub writable\n";
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
*(intptr_t *)StubAddr = 0xe51ff004;
|
||||
*(intptr_t *)(StubAddr+4) = NewVal;
|
||||
#if defined(__APPLE__)
|
||||
ok = sys::Memory::setRangeExecutable ((void*)StubAddr, 8);
|
||||
if (!ok)
|
||||
{
|
||||
cerr << "ERROR: Unable to mark stub executable\n";
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
TargetJITInfo::LazyResolverFn
|
||||
|
Loading…
Reference in New Issue
Block a user