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

Alexandre Ganea via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 30 11:40:40 PST 2024


================
@@ -1206,6 +1245,19 @@ void Writer::createMiscChunks() {
                                   IMAGE_DLL_CHARACTERISTICS_EX_CET_COMPAT));
   }
 
+  if (writeLTO) {
+    debugRecords.emplace_back(COFF::IMAGE_DEBUG_TYPE_POGO,
+                              make<DebugDirStringChunk>(ltcg));
----------------
aganea wrote:

I didn’t mean to discourage you @mikolaj-pirog. But if you could come up with a proper structure here for IMAGE_DEBUG_TYPE_POGO, I think the PR would be acceptable.

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


More information about the cfe-commits mailing list