File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
llvm/lib/Target/RISCV/MCTargetDesc Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -214,14 +214,7 @@ void RISCVMCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const {
214214
215215bool RISCVMCExpr::evaluateAsConstant (int64_t &Res) const {
216216 MCValue Value;
217-
218- if (Kind == VK_RISCV_PCREL_HI || Kind == VK_RISCV_PCREL_LO ||
219- Kind == VK_RISCV_GOT_HI || Kind == VK_RISCV_TPREL_HI ||
220- Kind == VK_RISCV_TPREL_LO || Kind == VK_RISCV_TPREL_ADD ||
221- Kind == VK_RISCV_TLS_GOT_HI || Kind == VK_RISCV_TLS_GD_HI ||
222- Kind == VK_RISCV_TLSDESC_HI || Kind == VK_RISCV_TLSDESC_LOAD_LO ||
223- Kind == VK_RISCV_TLSDESC_ADD_LO || Kind == VK_RISCV_TLSDESC_CALL ||
224- Kind == VK_RISCV_CALL || Kind == VK_RISCV_CALL_PLT)
217+ if (Kind != VK_RISCV_LO && Kind != VK_RISCV_HI)
225218 return false ;
226219
227220 if (!getSubExpr ()->evaluateAsRelocatable (Value, nullptr , nullptr ))
You can’t perform that action at this time.
0 commit comments