[llvm-commits] [llvm] r51291 - /llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Mon May 19 18:56:59 PDT 2008
Author: evancheng
Date: Mon May 19 20:56:59 2008
New Revision: 51291
URL: http://llvm.org/viewvc/llvm-project?rev=51291&view=rev
Log:
runOnMachineFunction should set IsPIC because relocation model may have been changed.
Modified:
llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp
Modified: llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp?rev=51291&r1=51290&r2=51291&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp Mon May 19 20:56:59 2008
@@ -115,6 +115,7 @@
II = TM.getInstrInfo();
TD = TM.getTargetData();
Is64BitMode = TM.getSubtarget<X86Subtarget>().is64Bit();
+ IsPIC = TM.getRelocationModel() == Reloc::PIC_;
do {
DOUT << "JITTing function '" << MF.getFunction()->getName() << "'\n";
More information about the llvm-commits
mailing list