[PATCH] D44023: [WebAssembly] Fix tests with invalid yaml (required CODE section missing)

Nicholas Wilson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 5 04:30:41 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL326692: [WebAssembly] Fix tests with invalid yaml (required CODE section missing) (authored by ncw, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D44023

Files:
  llvm/trunk/test/ObjectYAML/wasm/export_section.yaml
  llvm/trunk/test/ObjectYAML/wasm/function_section.yaml
  llvm/trunk/test/ObjectYAML/wasm/start_section.yaml


Index: llvm/trunk/test/ObjectYAML/wasm/start_section.yaml
===================================================================
--- llvm/trunk/test/ObjectYAML/wasm/start_section.yaml
+++ llvm/trunk/test/ObjectYAML/wasm/start_section.yaml
@@ -7,14 +7,23 @@
   - Type:            TYPE
     Signatures:
       - Index:           0
-        ReturnType:      I32
+        ReturnType:      NORESULT
         ParamTypes:
-          - F32
-          - F32
   - Type:            FUNCTION
     FunctionTypes: [ 0, 0, 0 ]
   - Type:            START
     StartFunction:   1
+  - Type:            CODE
+    Functions:
+      - Index:           0
+        Locals:
+        Body:            0B
+      - Index:           1
+        Locals:
+        Body:            0B
+      - Index:           2
+        Locals:
+        Body:            0B
 ...
 # CHECK: --- !WASM
 # CHECK: FileHeader:
Index: llvm/trunk/test/ObjectYAML/wasm/function_section.yaml
===================================================================
--- llvm/trunk/test/ObjectYAML/wasm/function_section.yaml
+++ llvm/trunk/test/ObjectYAML/wasm/function_section.yaml
@@ -14,6 +14,14 @@
           - I32
   - Type:            FUNCTION
     FunctionTypes: [ 1, 0 ]
+  - Type:            CODE
+    Functions:
+      - Index:           0
+        Locals:
+        Body:            0B
+      - Index:           1
+        Locals:
+        Body:            0B
 ...
 # CHECK: --- !WASM
 # CHECK: FileHeader:
Index: llvm/trunk/test/ObjectYAML/wasm/export_section.yaml
===================================================================
--- llvm/trunk/test/ObjectYAML/wasm/export_section.yaml
+++ llvm/trunk/test/ObjectYAML/wasm/export_section.yaml
@@ -38,6 +38,14 @@
       - Name:            table_export
         Kind:            TABLE
         Index:           0
+  - Type:            CODE
+    Functions:
+      - Index:           0
+        Locals:
+        Body:            0B
+      - Index:           1
+        Locals:
+        Body:            0B
 ...
 # CHECK: --- !WASM
 # CHECK: FileHeader:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44023.136972.patch
Type: text/x-patch
Size: 2047 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180305/91adcdc4/attachment.bin>


More information about the llvm-commits mailing list