summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-02-18 01:49:25 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-02-18 01:49:25 +0000
commit06c2e6d1b34dcfc361d4fa748f871c4c0dcdd1e5 (patch)
treee051d521a9a4e28beca5df5b133616dcf15006de /llvm/lib/Target
parentcb853de534a94023599e037e91c0c6bb0be9669b (diff)
downloadbcm5719-llvm-06c2e6d1b34dcfc361d4fa748f871c4c0dcdd1e5.tar.gz
bcm5719-llvm-06c2e6d1b34dcfc361d4fa748f871c4c0dcdd1e5.zip
Disable PIC for JIT.
llvm-svn: 26281
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index 49f18784192..f24e1b026a9 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud