================
@@ -892,6 +909,20 @@ static void
generateMachineCodeOrAssemblyImpl(clang::DiagnosticsEngine &diags,
delete tlii;
}
+
+// Default filename used for profile generation.
+namespace llvm {
+ extern llvm::cl::opt<bool> DebugInfoCorrelate;
+ extern llvm::cl::opt<InstrProfCorrelator::ProfCorrelatorKind>
ProfileCorrelate;
+
+
+std::string getDefaultProfileGenName() {
----------------
DavidTruby wrote:
You can change the source of clang to move that function to e.g.
`llvm/lib/Frontend/Driver/CodeGenOptions.cpp` and use it from that location
from both clang and flang. We've done that in a few different places for
options like these (like `createTLII` as @tarunprabhu mentioned)
https://github.com/llvm/llvm-project/pull/136098
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits