summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit1ecf1fd5c80ef44c1bc64cb32d70e879d5a3fb63 (patch)
tree5062b937a6db61b54b31e90aa3a0beff283957c0 /llvm/lib/Target/ARM/ARMJITInfo.cpp
parenta08a05e54141d10972268ad29ea400186c535e17 (diff)
downloadbcm5719-llvm-1ecf1fd5c80ef44c1bc64cb32d70e879d5a3fb63.tar.gz
bcm5719-llvm-1ecf1fd5c80ef44c1bc64cb32d70e879d5a3fb63.zip
remove extraneous #ifdef's
llvm-svn: 58006
Diffstat (limited to 'llvm/lib/Target/ARM/ARMJITInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMJITInfo.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMJITInfo.cpp b/llvm/lib/Target/ARM/ARMJITInfo.cpp
index c2db9cda8f9..3c50caaf6d0 100644
--- a/llvm/lib/Target/ARM/ARMJITInfo.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud