OSDN Git Service

[WebAssembly] Fix validation of start function
authorSam Clegg <sbc@chromium.org>
Tue, 9 May 2017 17:51:38 +0000 (17:51 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 9 May 2017 17:51:38 +0000 (17:51 +0000)
commit072e32f0891eea492c1d13edde6a3ad66d152308
tree4b1190ab312b8f090c91d06e1ea0185b732c2d18
parent8a634a882481ed8b69e754d21466b4854e85652b
[WebAssembly] Fix validation of start function

The check for valid start function was inverted.  Added a new
test in test/Object to check this case and fixed the existing
tests in for ObjectYAML.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302560 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/WasmObjectFile.cpp
test/Object/wasm-invalid-start.test [new file with mode: 0644]
test/ObjectYAML/wasm/function_section.yaml
test/ObjectYAML/wasm/start_section.yaml