[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp

Evan Cheng evan.cheng at apple.com
Fri Feb 17 17:49:36 PST 2006



Changes in directory llvm/lib/Target/X86:

X86TargetMachine.cpp updated: 1.103 -> 1.104
---
Log message:

Disable PIC for JIT.


---
Diffs of the changes:  (+3 -0)

 X86TargetMachine.cpp |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.103 llvm/lib/Target/X86/X86TargetMachine.cpp:1.104
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.103	Thu Feb 16 18:03:04 2006
+++ llvm/lib/Target/X86/X86TargetMachine.cpp	Fri Feb 17 19:49:25 2006
@@ -149,6 +149,9 @@
 /// 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());
 






More information about the llvm-commits mailing list