[flang-commits] [clang] [flang] [lld] [llvm] [polly] [Option] Make Passes, Scalar, Instrumentation, and CGData options per-context (PR #232599)
Alexis Engelke via flang-commits
flang-commits at lists.llvm.org
Fri Oct 16 03:15:13 PDT 2026
================
@@ -144,10 +144,13 @@ extern llvm::cl::opt<bool> ClSanitizeGuardChecks;
}
// Path and name of file used for profile generation
-static std::string getProfileGenName(const CodeGenOptions &CodeGenOpts) {
- std::string FileName = CodeGenOpts.InstrProfileOutput.empty()
- ? llvm::driver::getDefaultProfileGenName()
- : CodeGenOpts.InstrProfileOutput;
+static std::string
+getProfileGenName(const cl::LibraryOptionsContext &LibraryOptions,
----------------
aengelke wrote:
Maybe we want some consistency in whether LibraryOptionsContext is a nullable pointer or a reference.
https://github.com/llvm/llvm-project/pull/232599
More information about the flang-commits
mailing list