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

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 16 11:29:12 PDT 2024


Author: Heejin Ahn
Date: 2024-09-16T11:29:09-07:00
New Revision: d8ee96c50029c294c29dad4aad57def9eefc6ff3

URL: https://github.com/llvm/llvm-project/commit/d8ee96c50029c294c29dad4aad57def9eefc6ff3
DIFF: https://github.com/llvm/llvm-project/commit/d8ee96c50029c294c29dad4aad57def9eefc6ff3.diff

LOG: [WebAssembly] Add indentations to annotations.s (#108790)

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

Added: 
    

Modified: 
    llvm/test/MC/WebAssembly/annotations.s

Removed: 
    


################################################################################
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