66//
77// ===----------------------------------------------------------------------===//
88
9- #include " MCTargetDesc/SparcMCExpr .h"
9+ #include " MCTargetDesc/SparcMCAsmInfo .h"
1010#include " MCTargetDesc/SparcMCTargetDesc.h"
1111#include " TargetInfo/SparcTargetInfo.h"
1212#include " llvm/ADT/SmallVector.h"
@@ -109,7 +109,8 @@ class SparcAsmParser : public MCTargetAsmParser {
109109 ParseStatus parseExpression (int64_t &Val);
110110
111111 // Helper function for dealing with %lo / %hi in PIC mode.
112- const SparcMCExpr *adjustPICRelocation (uint16_t VK, const MCExpr *subExpr);
112+ const MCSpecifierExpr *adjustPICRelocation (uint16_t VK,
113+ const MCExpr *subExpr);
113114
114115 // Helper function to see if current token can start an expression.
115116 bool isPossibleExpression (const AsmToken &Token);
@@ -1642,7 +1643,7 @@ MCRegister SparcAsmParser::matchRegisterName(const AsmToken &Tok,
16421643static bool hasGOTReference (const MCExpr *Expr) {
16431644 switch (Expr->getKind ()) {
16441645 case MCExpr::Target:
1645- if (const SparcMCExpr *SE = dyn_cast<SparcMCExpr >(Expr))
1646+ if (const MCSpecifierExpr *SE = dyn_cast<MCSpecifierExpr >(Expr))
16461647 return hasGOTReference (SE->getSubExpr ());
16471648 break ;
16481649
@@ -1668,8 +1669,8 @@ static bool hasGOTReference(const MCExpr *Expr) {
16681669 return false ;
16691670}
16701671
1671- const SparcMCExpr * SparcAsmParser::adjustPICRelocation ( uint16_t RelType,
1672- const MCExpr *subExpr) {
1672+ const MCSpecifierExpr *
1673+ SparcAsmParser::adjustPICRelocation ( uint16_t RelType, const MCExpr *subExpr) {
16731674 // When in PIC mode, "%lo(...)" and "%hi(...)" behave differently.
16741675 // If the expression refers contains _GLOBAL_OFFSET_TABLE, it is
16751676 // actually a %pc10 or %pc22 relocation. Otherwise, they are interpreted
0 commit comments