[PATCH] D104803: [AIX] Emitting diagnostics error for profile options
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 23 16:20:33 PDT 2021
hubert.reinterpretcast added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:786
+ << PGOGenerateArg->getSpelling() << "-flto";
+ if (ProfileGenerateArg)
+ D.Diag(diag::err_drv_unsupported_opt_for_target)
----------------
Isn't this block of code a bit too early? The adjustment to consider the "no" form as equivalent to not having any `ProfileGenerateArg` is later in the function. I think it makes sense to move this to after the group of blocks that deal with more "fundamental" option conflicts.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104803/new/
https://reviews.llvm.org/D104803
More information about the cfe-commits
mailing list