Lines Matching refs:Variant
436 MCSymbolRefExpr::VariantKind Variant);
774 // Lookup the symbol variant if used.
775 MCSymbolRefExpr::VariantKind Variant = MCSymbolRefExpr::VK_None;
777 Variant = MCSymbolRefExpr::getVariantKindForName(Split.second);
778 if (Variant == MCSymbolRefExpr::VK_Invalid) {
779 Variant = MCSymbolRefExpr::VK_None;
780 return TokError("invalid variant '" + Split.second + "'");
787 if (Variant)
795 Res = MCSymbolRefExpr::Create(Sym, Variant, getContext());
874 MCSymbolRefExpr::VariantKind Variant) {
875 // Recurse over the given expression, rebuilding it to apply the given variant
886 TokError("invalid variant on expression '" +
891 return MCSymbolRefExpr::Create(&SRE->getSymbol(), Variant, getContext());
896 const MCExpr *Sub = ApplyModifierToExpr(UE->getSubExpr(), Variant);
904 const MCExpr *LHS = ApplyModifierToExpr(BE->getLHS(), Variant);
905 const MCExpr *RHS = ApplyModifierToExpr(BE->getRHS(), Variant);
945 MCSymbolRefExpr::VariantKind Variant =
947 if (Variant == MCSymbolRefExpr::VK_Invalid)
948 return TokError("invalid variant '" + getTok().getIdentifier() + "'");
950 const MCExpr *ModifiedRes = ApplyModifierToExpr(Res, Variant);