================
@@ -1755,6 +1755,18 @@ Compilation *Driver::BuildCompilation(ArrayRef<const 
char *> ArgList) {
         << TC.getTriple().str();
   }
 
+  // Throw diagnosis if mcmodel=tiny option is passed for targets other than 
ARM
+  // or AArch64.
+  if (Arg *A = UArgs->getLastArg(options::OPT_mcmodel_EQ)) {
----------------
MaskRay wrote:

Move to clang/lib/Driver/ToolChains/CommonArgs.cpp `addMCModel`. You might 
delete add an early return to that function and run `check-clang-driver` to 
find relevant tests. Then follow that style and add one for Arm.

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

Reply via email to