From: Evan Cheng Date: Sat, 18 Feb 2006 01:49:25 +0000 (+0000) Subject: Disable PIC for JIT. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6428302f3d5c70b3fa4bdedfc14cdd9104e271cf;p=oota-llvm.git Disable PIC for JIT. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26281 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 49f18784192..f24e1b026a9 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -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());