diff options
author | Thomas Lively <tlively@google.com> | 2019-01-08 06:25:55 +0000 |
---|---|---|
committer | Thomas Lively <tlively@google.com> | 2019-01-08 06:25:55 +0000 |
commit | 6a87ddac9a056c9a7b75eb630908aa356d8a1028 (patch) | |
tree | 23cc1254457e558cb7c6ea53d8601517fea5c34d /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 616ed1722111a3dcb5d339fe6ce8a5f6d69bdc80 (diff) | |
download | bcm5719-llvm-6a87ddac9a056c9a7b75eb630908aa356d8a1028.tar.gz bcm5719-llvm-6a87ddac9a056c9a7b75eb630908aa356d8a1028.zip |
[WebAssembly] Massive instruction renaming
Summary:
An automated renaming of all the instructions listed at
https://github.com/WebAssembly/spec/issues/884#issuecomment-426433329
as well as some similarly-named identifiers.
Reviewers: aheejin, dschuff, aardappel
Subscribers: sbc100, jgravelle-google, eraman, sunfish, jfb, llvm-commits
Differential Revision: https://reviews.llvm.org/D56338
llvm-svn: 350609
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/WasmObjectFile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index 34e4d192e59..d84cb48c9fb 100644 --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -176,7 +176,7 @@ static Error readInitExpr(wasm::WasmInitExpr &Expr, case wasm::WASM_OPCODE_F64_CONST: Expr.Value.Float64 = readFloat64(Ctx); break; - case wasm::WASM_OPCODE_GET_GLOBAL: + case wasm::WASM_OPCODE_GLOBAL_GET: Expr.Value.Global = readULEB128(Ctx); break; default: @@ -819,7 +819,7 @@ Error WasmObjectFile::parseImportSection(ReadContext &Ctx) { break; case wasm::WASM_EXTERNAL_TABLE: Im.Table = readTable(Ctx); - if (Im.Table.ElemType != wasm::WASM_TYPE_ANYFUNC) + if (Im.Table.ElemType != wasm::WASM_TYPE_FUNCREF) return make_error<GenericBinaryError>("Invalid table element type", object_error::parse_failed); break; @@ -862,7 +862,7 @@ Error WasmObjectFile::parseTableSection(ReadContext &Ctx) { Tables.reserve(Count); while (Count--) { Tables.push_back(readTable(Ctx)); - if (Tables.back().ElemType != wasm::WASM_TYPE_ANYFUNC) { + if (Tables.back().ElemType != wasm::WASM_TYPE_FUNCREF) { return make_error<GenericBinaryError>("Invalid table element type", object_error::parse_failed); } |