[llvm] [SystemZ][z/OS] Emit alignment in HLASM syntax (PR #222121)

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 06:59:35 PDT 2026


================
@@ -310,30 +281,77 @@ void SystemZHLASMAsmStreamer::EmitComment() {
   CommentToEmit.clear();
 }
 
+void SystemZHLASMAsmStreamer::flushPendingAlignment() {
----------------
uweigand wrote:

The whole "pending" logic is a bit unfortunate.  It seems a likely source of errors to forget adding `flushPendingAlignment` calls (either today, or after some future change).

If we didn't use the pending logic, what would be the effect?   That we have two DS statements following directly after one another?   Would this be an actual problem?

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


More information about the llvm-commits mailing list