Disable PIC for JIT.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 18 Feb 2006 01:49:25 +0000 (01:49 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 18 Feb 2006 01:49:25 +0000 (01:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26281 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.cpp

index 49f187841926848dfb0179efb91af8e351063302..f24e1b026a96c721e31d801644d85b9f8216b901 100644 (file)
@@ -149,6 +149,9 @@ bool X86TargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out,
 /// not supported for this target.
 ///
 void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
+  // The JIT does not support or need PIC.
+  PICEnabled = false;
+
   // FIXME: Implement efficient support for garbage collection intrinsics.
   PM.add(createLowerGCPass());