diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-03-04 18:25:41 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-03-04 18:25:41 +0000 |
commit | 1d6bb9f4171028bd0eb3dfcb59f42b28c279d4be (patch) | |
tree | bd5f9425e10e6616a37eac0815b3566ba1132430 /lib/Target/AArch64/AArch64TargetMachine.cpp | |
parent | bd7f07563c83e00dae23ea41c0fc4f95995e50cb (diff) | |
download | src-vendor/llvm/llvm-release_80-r355313.tar.gz src-vendor/llvm/llvm-release_80-r355313.zip |
Vendor import of llvm release_80 branch r355313:vendor/llvm/llvm-release_80-r355313
Diffstat (limited to 'lib/Target/AArch64/AArch64TargetMachine.cpp')
-rw-r--r-- | lib/Target/AArch64/AArch64TargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/AArch64/AArch64TargetMachine.cpp b/lib/Target/AArch64/AArch64TargetMachine.cpp index 4e016525f7e4..219c33ef73c5 100644 --- a/lib/Target/AArch64/AArch64TargetMachine.cpp +++ b/lib/Target/AArch64/AArch64TargetMachine.cpp @@ -209,8 +209,8 @@ static std::string computeDataLayout(const Triple &TT, static Reloc::Model getEffectiveRelocModel(const Triple &TT, Optional<Reloc::Model> RM) { - // AArch64 Darwin is always PIC. - if (TT.isOSDarwin()) + // AArch64 Darwin and Windows are always PIC. + if (TT.isOSDarwin() || TT.isOSWindows()) return Reloc::PIC_; // On ELF platforms the default static relocation model has a smart enough // linker to cope with referencing external symbols defined in a shared |