aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAndre Kuhlenschmidt <andre.kuhlenschmidt@gmail.com>2025-06-18 11:21:35 -0700
committerGitHub <noreply@github.com>2025-06-18 11:21:35 -0700
commit17f5b8b52a3552de1143efb42af6a94d47d8c7fd (patch)
tree11cda53ab950e3c18a11698434b8cc43cd2d510b /flang/lib/Frontend/CompilerInvocation.cpp
parent3f3526f36d23eac8d099e8e887a924c94000bbfa (diff)
downloadllvm-17f5b8b52a3552de1143efb42af6a94d47d8c7fd.zip
llvm-17f5b8b52a3552de1143efb42af6a94d47d8c7fd.tar.gz
llvm-17f5b8b52a3552de1143efb42af6a94d47d8c7fd.tar.bz2
[flang][driver] add ability to look up feature flags without setting them (#144559)
This just adds some convenience methods to feature control and rewrites old code in terms of those methods. Also cleans up some names that I just realize were overloads of another method.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--flang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index 147849b..2603a3f 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -1011,7 +1011,7 @@ static bool parseDiagArgs(CompilerInvocation &res, llvm::opt::ArgList &args,
if (wArg == "error") {
res.setWarnAsErr(true);
// -W(no-)<feature>
- } else if (!features.ApplyCliOption(wArg)) {
+ } else if (!features.EnableWarning(wArg)) {
const unsigned diagID = diags.getCustomDiagID(
clang::DiagnosticsEngine::Error, "Unknown diagnostic option: -W%0");
diags.Report(diagID) << wArg;