remove extraneous #ifdef's
authorJim Grosbach <grosbach@apple.com>
Wed, 22 Oct 2008 22:27:51 +0000 (22:27 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 22 Oct 2008 22:27:51 +0000 (22:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58006 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMJITInfo.cpp

index c2db9cda8f9db1209326978ac723e48b15511413..3c50caaf6d0b002ecc9820a7874207c47d80a4db 100644 (file)
@@ -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