[llvm-commits] [llvm] r58006 - /llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp
Jim Grosbach
grosbach at apple.com
Wed Oct 22 15:27:51 PDT 2008
Author: grosbach
Date: Wed Oct 22 17:27:51 2008
New Revision: 58006
URL: http://llvm.org/viewvc/llvm-project?rev=58006&view=rev
Log:
remove extraneous #ifdef's
Modified:
llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp?rev=58006&r1=58005&r2=58006&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp Wed Oct 22 17:27:51 2008
@@ -110,24 +110,20 @@
// 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
More information about the llvm-commits
mailing list