================
@@ -11358,6 +11361,37 @@ bool ARMAsmParser::parseDirectiveARM(SMLoc L) {
   return false;
 }
 
+MCSymbolRefExpr::VariantKind
+ARMAsmParser::getVariantKindForName(StringRef Name) const {
----------------
smithp35 wrote:

I can see a design trade-off here. By implementing only the expressions that 
are supported on Arm we find some problems earlier, however we may miss out on 
generic expressions added to the `MCSymbolRefExpr::getVariantKindForName` but 
not for Arm. I can see these getting out of sync.

Would it be worth calling the MCSymbolRefExpr::getVariantKindForName if the 
Name isn't found? Ideally we could refactor so that 
MCSymbolRefExpr::getVariantKindForName contains only generic and no target 
specific variant kinds.



https://github.com/llvm/llvm-project/pull/82187
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to