[llvm] [WebAssembly] Add indentations to annotations.s (PR #108790)

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 15 21:24:55 PDT 2024


https://github.com/aheejin created https://github.com/llvm/llvm-project/pull/108790

Given that the instructions here are all control flow instructions, adding indentations seem to make it easier to read.

>From cd68474b372b6f0b1f2f14242c9da817d2ca22f5 Mon Sep 17 00:00:00 2001
From: Heejin Ahn <aheejin at gmail.com>
Date: Mon, 16 Sep 2024 04:18:26 +0000
Subject: [PATCH] [WebAssembly] Add indentations to annotations.s

Given that the instructions here are all control flow instructions,
adding indentations seem to make it easier to read.
---
 llvm/test/MC/WebAssembly/annotations.s | 42 +++++++++++++-------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/llvm/test/MC/WebAssembly/annotations.s b/llvm/test/MC/WebAssembly/annotations.s
index 18fd16f2dc687b..b1f97daccccd65 100644
--- a/llvm/test/MC/WebAssembly/annotations.s
+++ b/llvm/test/MC/WebAssembly/annotations.s
@@ -10,28 +10,28 @@ test_annotation:
   .functype   test_annotation () -> ()
   .tagtype  __cpp_exception i32
   try
-  br        0
+    br        0
   catch     __cpp_exception
-  block
-  br_if     0
-  loop
-  br_if     1
-  end_loop
-  end_block
-  try
-  rethrow   0
-  catch     __cpp_exception
-  catch_all
-  block
-  try
-  br        0
-  try
-  delegate  1
-  catch_all
-  end_try
-  end_block
-  rethrow   0
-  end_try
+    block
+      br_if     0
+      loop
+        br_if     1
+      end_loop
+    end_block
+    try
+      rethrow   0
+    catch     __cpp_exception
+    catch_all
+      block
+        try
+          br        0
+          try
+          delegate  1
+        catch_all
+        end_try
+      end_block
+      rethrow   0
+    end_try
   end_try
   end_function
 



More information about the llvm-commits mailing list