[clang] [llvm] [ARM] Adding diagnostics for mcmodel=tiny when used in invalid targets (PR #125643)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 16 09:08:04 PDT 2025
================
@@ -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:
`tiny` is expected to work with AArch64.
https://github.com/llvm/llvm-project/pull/125643
More information about the llvm-commits
mailing list