[llvm-commits] [llvm] r48703 - /llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sun Mar 23 06:41:18 PDT 2008
Author: asl
Date: Sun Mar 23 08:41:18 2008
New Revision: 48703
URL: http://llvm.org/viewvc/llvm-project?rev=48703&view=rev
Log:
Hack out the PIC mode on Win64 targets. This needs to be investigated later.
Modified:
llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Modified: llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetMachine.cpp?rev=48703&r1=48702&r2=48703&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetMachine.cpp Sun Mar 23 08:41:18 2008
@@ -119,8 +119,10 @@
Subtarget.getStackAlignment(), Subtarget.is64Bit() ? -8 : -4),
InstrInfo(*this), JITInfo(*this), TLInfo(*this) {
DefRelocModel = getRelocationModel();
+ // FIXME: Correctly select PIC model for Win64 stuff
if (getRelocationModel() == Reloc::Default) {
- if (Subtarget.isTargetDarwin() || Subtarget.isTargetCygMing())
+ if (Subtarget.isTargetDarwin() ||
+ (Subtarget.isTargetCygMing() && !Subtarget.isTargetWin64()))
setRelocationModel(Reloc::DynamicNoPIC);
else
setRelocationModel(Reloc::Static);
More information about the llvm-commits
mailing list