[lld] [lld][COFF] Emit coffgrp debug record (PR #205630)

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 4 08:37:03 PDT 2026


================
@@ -996,6 +996,38 @@ class FakeSectionChunk {
   SectionChunk chunk;
 };
 
+class COFFDebugRecordChunk : public NonSectionChunk {
+public:
+  COFFDebugRecordChunk(COFFLinkerContext &c) : ctx(c) {}
+  size_t getSize() const override;
+  void writeTo(uint8_t *b) const override;
+  void computeRecords();
+
+private:
+  static constexpr const char *const pgoSectionNames[] = {
----------------
aganea wrote:

Comment to indicate that these section names are MSVC PGO naming conventions.

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


More information about the llvm-commits mailing list