================
@@ -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() {
----------------
fanju110 wrote:

Thank you for your review.


The `getDefaultProfileGenName` function in the original clang is defined in an 
anonymous namespace and cannot be directly reused in flang. If I reuse this 
function, I may need to change the source code of clang, is this appropriate?

https://github.com/llvm/llvm-project/pull/136098
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to