diff options
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index 90c3275..52ca9f6 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -1110,17 +1110,17 @@ static bool parseOpenMPArgs(CompilerInvocation &res, llvm::opt::ArgList &args, static bool parseFloatingPointArgs(CompilerInvocation &invoc, llvm::opt::ArgList &args, clang::DiagnosticsEngine &diags) { - LangOptions &opts = invoc.getLangOpts(); + Fortran::common::LangOptions &opts = invoc.getLangOpts(); if (const llvm::opt::Arg *a = args.getLastArg(clang::driver::options::OPT_ffp_contract)) { const llvm::StringRef val = a->getValue(); - enum LangOptions::FPModeKind fpContractMode; + enum Fortran::common::LangOptions::FPModeKind fpContractMode; if (val == "off") - fpContractMode = LangOptions::FPM_Off; + fpContractMode = Fortran::common::LangOptions::FPM_Off; else if (val == "fast") - fpContractMode = LangOptions::FPM_Fast; + fpContractMode = Fortran::common::LangOptions::FPM_Fast; else { diags.Report(clang::diag::err_drv_unsupported_option_argument) << a->getSpelling() << val; @@ -1161,7 +1161,7 @@ static bool parseFloatingPointArgs(CompilerInvocation &invoc, opts.ReciprocalMath = true; opts.ApproxFunc = true; opts.NoSignedZeros = true; - opts.setFPContractMode(LangOptions::FPM_Fast); + opts.setFPContractMode(Fortran::common::LangOptions::FPM_Fast); } return true; @@ -1194,7 +1194,7 @@ static bool parseVScaleArgs(CompilerInvocation &invoc, llvm::opt::ArgList &args, return false; } - LangOptions &opts = invoc.getLangOpts(); + Fortran::common::LangOptions &opts = invoc.getLangOpts(); if (vscaleMin) { llvm::StringRef argValue = llvm::StringRef(vscaleMin->getValue()); unsigned vscaleMinVal; @@ -1556,14 +1556,14 @@ void CompilerInvocation::setLoweringOptions() { loweringOpts.setOptimizeTranspose(codegenOpts.OptimizationLevel > 0); loweringOpts.setUnderscoring(codegenOpts.Underscoring); - const LangOptions &langOptions = getLangOpts(); + const Fortran::common::LangOptions &langOptions = getLangOpts(); Fortran::common::MathOptionsBase &mathOpts = loweringOpts.getMathOptions(); // TODO: when LangOptions are finalized, we can represent // the math related options using Fortran::commmon::MathOptionsBase, // so that we can just copy it into LoweringOptions. mathOpts .setFPContractEnabled(langOptions.getFPContractMode() == - LangOptions::FPM_Fast) + Fortran::common::LangOptions::FPM_Fast) .setNoHonorInfs(langOptions.NoHonorInfs) .setNoHonorNaNs(langOptions.NoHonorNaNs) .setApproxFunc(langOptions.ApproxFunc) |