diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-03 20:11:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-03 20:11:40 +0000 |
commit | 5c72868c4cb0d3fe81512dc1c4d881e17b0ba599 (patch) | |
tree | fe2e7787de5734b2761d5453cb247988c1795cd5 /contrib/llvm-project/llvm/lib/Target/RISCV | |
parent | 8f6d9a8e6899d5e47fa97a7e80e4232e83ce94c5 (diff) | |
download | src-5c72868c4cb0d3fe81512dc1c4d881e17b0ba599.tar.gz src-5c72868c4cb0d3fe81512dc1c4d881e17b0ba599.zip |
Notes
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Target/RISCV')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Target/RISCV/RISCVISelLowering.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/contrib/llvm-project/llvm/lib/Target/RISCV/RISCVISelLowering.cpp index 2b0f64fa6db6..6ce317994d2a 100644 --- a/contrib/llvm-project/llvm/lib/Target/RISCV/RISCVISelLowering.cpp +++ b/contrib/llvm-project/llvm/lib/Target/RISCV/RISCVISelLowering.cpp @@ -570,10 +570,7 @@ SDValue RISCVTargetLowering::lowerGlobalTLSAddress(SDValue Op, int64_t Offset = N->getOffset(); MVT XLenVT = Subtarget.getXLenVT(); - // Non-PIC TLS lowering should always use the LocalExec model. - TLSModel::Model Model = isPositionIndependent() - ? getTargetMachine().getTLSModel(N->getGlobal()) - : TLSModel::LocalExec; + TLSModel::Model Model = getTargetMachine().getTLSModel(N->getGlobal()); SDValue Addr; switch (Model) { |