@@ -848,14 +848,14 @@ bool SparcAsmParser::expandSETX(MCInst &Inst, SMLoc IDLoc,
848848 // sethi %hh(val), tmp
849849 Instructions.push_back (MCInstBuilder (SP::SETHIi)
850850 .addReg (MCTmpOp.getReg ())
851- .addExpr (SparcMCExpr::create (
852- ELF::R_SPARC_HH22 , ValExpr, getContext () )));
851+ .addExpr (Sparc::createSpecifierExpr (
852+ getContext () , ValExpr, ELF::R_SPARC_HH22 )));
853853 // or tmp, %hm(val), tmp
854854 Instructions.push_back (MCInstBuilder (SP::ORri)
855855 .addReg (MCTmpOp.getReg ())
856856 .addReg (MCTmpOp.getReg ())
857- .addExpr (SparcMCExpr::create (
858- ELF::R_SPARC_HM10 , ValExpr, getContext () )));
857+ .addExpr (Sparc::createSpecifierExpr (
858+ getContext () , ValExpr, ELF::R_SPARC_HM10 )));
859859 // sllx tmp, 32, tmp
860860 Instructions.push_back (MCInstBuilder (SP::SLLXri)
861861 .addReg (MCTmpOp.getReg ())
@@ -1165,7 +1165,7 @@ ParseStatus SparcAsmParser::parseTailRelocSym(OperandVector &Operands) {
11651165 return Error (getLoc (), " expected valid identifier for operand modifier" );
11661166
11671167 StringRef Name = getParser ().getTok ().getIdentifier ();
1168- uint16_t RelType = SparcMCExpr ::parseSpecifier (Name);
1168+ uint16_t RelType = Sparc ::parseSpecifier (Name);
11691169 if (RelType == 0 )
11701170 return Error (getLoc (), " invalid relocation specifier" );
11711171
@@ -1689,7 +1689,7 @@ const SparcMCExpr *SparcAsmParser::adjustPICRelocation(uint16_t RelType,
16891689 }
16901690 }
16911691
1692- return SparcMCExpr::create (RelType , subExpr, getContext () );
1692+ return Sparc::createSpecifierExpr ( getContext () , subExpr, RelType );
16931693}
16941694
16951695bool SparcAsmParser::matchSparcAsmModifiers (const MCExpr *&EVal,
@@ -1700,7 +1700,7 @@ bool SparcAsmParser::matchSparcAsmModifiers(const MCExpr *&EVal,
17001700
17011701 StringRef name = Tok.getString ();
17021702
1703- auto VK = SparcMCExpr ::parseSpecifier (name);
1703+ auto VK = Sparc ::parseSpecifier (name);
17041704 switch (VK) {
17051705 case 0 :
17061706 Error (getLoc (), " invalid relocation specifier" );
0 commit comments