[llvm-branch-commits] [llvm] [GOFF] Add writing of text records (PR #137235)

Ulrich Weigand via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri May 9 00:13:16 PDT 2025


================
@@ -50,26 +53,26 @@ class MCSectionGOFF final : public MCSection {
   friend class MCContext;
   friend class MCSymbolGOFF;
 
-  MCSectionGOFF(StringRef Name, SectionKind K, GOFF::SDAttr SDAttributes,
-                MCSectionGOFF *Parent)
-      : MCSection(SV_GOFF, Name, K.isText(), /*IsVirtual=*/false, nullptr),
+  MCSectionGOFF(StringRef Name, SectionKind K, bool IsVirtual,
----------------
uweigand wrote:

It's not actually about BSS (those are named BSS - but they're not virtual).  The "virtual" marker is for sections that represent those GOFF symbols that do not themselves contain text, but have nested GOFF sections which do.  For example the section representing a SD GOFF section does not contain text directly, but it does contain ED sections; and sections representing a ED symbol with the merge attribute do not contain text directly, but contain PR sections.

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


More information about the llvm-branch-commits mailing list