mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-06 03:19:50 +00:00
Non-darwin gcc should default to static relocation to match gcc.
llvm-svn: 32184
This commit is contained in:
parent
bc0c02e746
commit
11e73ffe93
@ -113,7 +113,7 @@ X86TargetMachine::X86TargetMachine(const Module &M, const std::string &FS, bool
|
||||
if (Subtarget.isTargetDarwin())
|
||||
setRelocationModel(Reloc::DynamicNoPIC);
|
||||
else
|
||||
setRelocationModel(Reloc::PIC_);
|
||||
setRelocationModel(Reloc::Static);
|
||||
if (Subtarget.is64Bit()) {
|
||||
// No DynamicNoPIC support under X86-64.
|
||||
if (getRelocationModel() == Reloc::DynamicNoPIC)
|
||||
|
Loading…
x
Reference in New Issue
Block a user