aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/Target/RISCV
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-01-03 20:11:40 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-01-03 20:11:40 +0000
commit5c72868c4cb0d3fe81512dc1c4d881e17b0ba599 (patch)
treefe2e7787de5734b2761d5453cb247988c1795cd5 /contrib/llvm-project/llvm/lib/Target/RISCV
parent8f6d9a8e6899d5e47fa97a7e80e4232e83ce94c5 (diff)
downloadsrc-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.cpp5
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) {