[llvm] r326692 - [WebAssembly] Fix tests with invalid yaml (required CODE section missing)

Nicholas Wilson via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 5 04:28:01 PST 2018


Author: ncw
Date: Mon Mar  5 04:28:01 2018
New Revision: 326692

URL: http://llvm.org/viewvc/llvm-project?rev=326692&view=rev
Log:
[WebAssembly] Fix tests with invalid yaml (required CODE section missing)

Differential Revision: https://reviews.llvm.org/D44023

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

Modified: llvm/trunk/test/ObjectYAML/wasm/export_section.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ObjectYAML/wasm/export_section.yaml?rev=326692&r1=326691&r2=326692&view=diff
==============================================================================
--- llvm/trunk/test/ObjectYAML/wasm/export_section.yaml (original)
+++ llvm/trunk/test/ObjectYAML/wasm/export_section.yaml Mon Mar  5 04:28:01 2018
@@ -38,6 +38,14 @@ Sections:
       - Name:            table_export
         Kind:            TABLE
         Index:           0
+  - Type:            CODE
+    Functions:
+      - Index:           0
+        Locals:
+        Body:            0B
+      - Index:           1
+        Locals:
+        Body:            0B
 ...
 # CHECK: --- !WASM
 # CHECK: FileHeader:

Modified: llvm/trunk/test/ObjectYAML/wasm/function_section.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ObjectYAML/wasm/function_section.yaml?rev=326692&r1=326691&r2=326692&view=diff
==============================================================================
--- llvm/trunk/test/ObjectYAML/wasm/function_section.yaml (original)
+++ llvm/trunk/test/ObjectYAML/wasm/function_section.yaml Mon Mar  5 04:28:01 2018
@@ -14,6 +14,14 @@ Sections:
           - I32
   - Type:            FUNCTION
     FunctionTypes: [ 1, 0 ]
+  - Type:            CODE
+    Functions:
+      - Index:           0
+        Locals:
+        Body:            0B
+      - Index:           1
+        Locals:
+        Body:            0B
 ...
 # CHECK: --- !WASM
 # CHECK: FileHeader:

Modified: llvm/trunk/test/ObjectYAML/wasm/start_section.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ObjectYAML/wasm/start_section.yaml?rev=326692&r1=326691&r2=326692&view=diff
==============================================================================
--- llvm/trunk/test/ObjectYAML/wasm/start_section.yaml (original)
+++ llvm/trunk/test/ObjectYAML/wasm/start_section.yaml Mon Mar  5 04:28:01 2018
@@ -7,14 +7,23 @@ Sections:
   - 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:




More information about the llvm-commits mailing list