Hexagon: Remove getVariantKind

This commit is contained in:
Fangrui Song
2025-06-27 23:05:51 -07:00
parent b9ca4c5fab
commit 18e9cfd56b
2 changed files with 1 additions and 6 deletions

View File

@@ -617,7 +617,7 @@ unsigned HexagonMCCodeEmitter::getExprOpValue(const MCInst &MI,
const MCInstrDesc &MCID = HexagonMCInstrInfo::getDesc(MCII, MI);
unsigned FixupWidth = HexagonMCInstrInfo::getExtentBits(MCII, MI) -
HexagonMCInstrInfo::getExtentAlignment(MCII, MI);
HexagonMCExpr::VariantKind VarKind = getVariantKind(MCSRE);
auto VarKind = HexagonMCExpr::VariantKind(MCSRE->getSpecifier());
unsigned Opc = MCID.getOpcode();
unsigned IType = HexagonMCInstrInfo::getType(MCII, MI);

View File

@@ -59,11 +59,6 @@ private:
bool S27_2_reloc;
bool SignMismatch;
};
static inline HexagonMCExpr::VariantKind
getVariantKind(const MCSymbolRefExpr *SRE) {
return HexagonMCExpr::VariantKind(SRE->getKind());
}
} // end namespace llvm
#endif // LLVM_LIB_TARGET_HEXAGON_HEXAGONMCEXPR_H