[PATCH] D106380: [SystemZ][z/OS] Initial code to generate assembly files on z/OS

Anirudh Prasad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 15:18:13 PDT 2021


anirudhp added inline comments.


================
Comment at: llvm/include/llvm/MC/MCSectionGOFF.h:37
+                            const MCExpr *Subsection) const override {
+    OS << "\t.section\t\"" << getName() << "\"\n";
+  }
----------------
anirudhp wrote:
> tmatheson wrote:
> > It might be a good idea to generalise `printName` from `MCSectionELF.cpp` to handle outputting names in quotes with proper escaping.
> Sure. Done.
Sorry I just realized I didn't quite answer your question properly. Yes, I will port over the complete `printName` implementation from the ELF part over. 

However, when looking at it, I realized there;s a bug with this patch. The GOFF sections are printed, but the ELF section are printed too, and this doesn't quite make sense. There shouldn't be mixing of sections. So I will try to resolve that first.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106380/new/

https://reviews.llvm.org/D106380



More information about the llvm-commits mailing list