forked from OSchip/llvm-project
X86TargetMachine.cpp: Clarify to emit GOT in i686-{cygming|win32}-elf for mcjit.
I suppose all "lli -use-mcjit i686-*" should require GOT, (and to fail.) llvm-svn: 188856
This commit is contained in:
parent
b46d3c8995
commit
de8880a23d
|
@ -92,7 +92,7 @@ X86TargetMachine::X86TargetMachine(const Target &T, StringRef TT,
|
||||||
} else if (Subtarget.is64Bit()) {
|
} else if (Subtarget.is64Bit()) {
|
||||||
// PIC in 64 bit mode is always rip-rel.
|
// PIC in 64 bit mode is always rip-rel.
|
||||||
Subtarget.setPICStyle(PICStyles::RIPRel);
|
Subtarget.setPICStyle(PICStyles::RIPRel);
|
||||||
} else if (Subtarget.isTargetCygMing()) {
|
} else if (Subtarget.isTargetCOFF()) {
|
||||||
Subtarget.setPICStyle(PICStyles::None);
|
Subtarget.setPICStyle(PICStyles::None);
|
||||||
} else if (Subtarget.isTargetDarwin()) {
|
} else if (Subtarget.isTargetDarwin()) {
|
||||||
if (getRelocationModel() == Reloc::PIC_)
|
if (getRelocationModel() == Reloc::PIC_)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
; RUN: %lli_mcjit -remote-mcjit -relocation-model=pic -code-model=small %s > /dev/null
|
; RUN: %lli_mcjit -remote-mcjit -relocation-model=pic -code-model=small %s > /dev/null
|
||||||
; XFAIL: mips, aarch64, arm, i686-pc-linux
|
; XFAIL: mips, aarch64, arm, i686
|
||||||
|
|
||||||
@count = global i32 1, align 4
|
@count = global i32 1, align 4
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
; RUN: %lli_mcjit -remote-mcjit -O0 -relocation-model=pic -code-model=small %s
|
; RUN: %lli_mcjit -remote-mcjit -O0 -relocation-model=pic -code-model=small %s
|
||||||
; XFAIL: mips, aarch64, arm, i686-pc-linux
|
; XFAIL: mips, aarch64, arm, i686
|
||||||
|
|
||||||
@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
|
@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
|
||||||
@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4
|
@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
; RUN: %lli_mcjit -relocation-model=pic -code-model=small %s > /dev/null
|
; RUN: %lli_mcjit -relocation-model=pic -code-model=small %s > /dev/null
|
||||||
; XFAIL: mips, aarch64, arm, i686-pc-linux
|
; XFAIL: mips, aarch64, arm, i686
|
||||||
|
|
||||||
@count = global i32 1, align 4
|
@count = global i32 1, align 4
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
; RUN: %lli_mcjit -O0 -relocation-model=pic -code-model=small %s
|
; RUN: %lli_mcjit -O0 -relocation-model=pic -code-model=small %s
|
||||||
; XFAIL: mips, aarch64, arm, i686-pc-linux
|
; XFAIL: mips, aarch64, arm, i686
|
||||||
|
|
||||||
@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
|
@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
|
||||||
@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4
|
@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4
|
||||||
|
|
Loading…
Reference in New Issue