Skip to content

Commit 55fa7e1

Browse files
committed
Sparc: Remove fishy VK_WPLT30 special case
I think 9fc2909 (2014) was misguided and added the unneeded special case. It probably wanted to handle R_SPARC_WPLT30/R_SPARC_WDISP30 in PDC/PIC but it's not correct to check the property in AsmParser.
1 parent 1ec9dd2 commit 55fa7e1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,8 +1480,6 @@ SparcAsmParser::parseSparcAsmOperand(std::unique_ptr<SparcOperand> &Op,
14801480
if (getParser().parseExpression(EVal, E))
14811481
break;
14821482

1483-
if (isCall && getContext().getObjectFileInfo()->isPositionIndependent())
1484-
EVal = SparcMCExpr::create(SparcMCExpr::VK_WPLT30, EVal, getContext());
14851483
Op = SparcOperand::CreateImm(EVal, S, E);
14861484
break;
14871485
}

0 commit comments

Comments
 (0)