[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 21 11:50:15 PST 2024


================
@@ -112,6 +112,8 @@ class MCTargetOptions {
   // Whether or not to use full register names on PowerPC.
   bool PPCUseFullRegisterNames : 1;
 
+  bool PgoInstrumentation = false;
----------------
rnk wrote:

Target options like this don't play well with (thin)LTO , because they don't carry over naturally from the frontend compilation step to the backend compilation step, which LTO separates. Is there an existing global named metadata flag you can look for instead to control this debug info setting?

https://github.com/llvm/llvm-project/pull/114260


More information about the cfe-commits mailing list