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 {
214
214
215
215
bool RISCVMCExpr::evaluateAsConstant (int64_t &Res) const {
216
216
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)
225
218
return false ;
226
219
227
220
if (!getSubExpr ()->evaluateAsRelocatable (Value, nullptr , nullptr ))
You can’t perform that action at this time.
0 commit comments