summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMJITInfo.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2008-10-22 22:27:51 +0000
committerJim Grosbach <grosbach@apple.com>2008-10-22 22:27:51 +0000
commitc64bdf6aa5160471dfda49a78d4a0e08bc07ac0d (patch)
tree34baa21cfaac73e982da57e03611263f06e81565 /lib/Target/ARM/ARMJITInfo.cpp
parentd1ce3b48e24b9e7d78cac590d1e4590a68c2e2ce (diff)
downloadllvm-c64bdf6aa5160471dfda49a78d4a0e08bc07ac0d.tar.gz
llvm-c64bdf6aa5160471dfda49a78d4a0e08bc07ac0d.tar.bz2
llvm-c64bdf6aa5160471dfda49a78d4a0e08bc07ac0d.tar.xz
remove extraneous #ifdef's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMJITInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMJITInfo.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMJITInfo.cpp b/lib/Target/ARM/ARMJITInfo.cpp
index c2db9cda8f..3c50caaf6d 100644
--- a/lib/Target/ARM/ARMJITInfo.cpp
+++ b/lib/Target/ARM/ARMJITInfo.cpp
@@ -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