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

Kai Nacke via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri May 9 06:10:40 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,
----------------
redstar wrote:

Exactly. The idea is to trigger the check in [MCAssembler::writeSectionData()](https://github.com/llvm/llvm-project/blob/main/llvm/lib/MC/MCAssembler.cpp#L796) for those sections which are not allowed to contain text.

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


More information about the llvm-branch-commits mailing list