From 6a87ddac9a056c9a7b75eb630908aa356d8a1028 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 8 Jan 2019 06:25:55 +0000 Subject: [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 --- llvm/lib/Object/WasmObjectFile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Object/WasmObjectFile.cpp') 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("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("Invalid table element type", object_error::parse_failed); } -- cgit v1.2.3