summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wabt/opcode.h8
-rw-r--r--include/wabt/type-checker.h4
2 files changed, 1 insertions, 11 deletions
diff --git a/include/wabt/opcode.h b/include/wabt/opcode.h
index 16afb2ee..24b45ab6 100644
--- a/include/wabt/opcode.h
+++ b/include/wabt/opcode.h
@@ -69,14 +69,6 @@ struct Opcode {
Type GetParamType(int n) const { return GetInfo().param_types[n - 1]; }
Address GetMemorySize() const { return GetInfo().memory_size; }
- // If this is a load/store op, the type depends on the memory used.
- Type GetMemoryParam(Type param,
- const Limits* limits,
- bool has_address_operands) {
- return limits && limits->is_64 && has_address_operands ? Type(Type::I64)
- : param;
- }
-
// Get the byte sequence for this opcode, including prefix.
std::vector<uint8_t> GetBytes() const;
diff --git a/include/wabt/type-checker.h b/include/wabt/type-checker.h
index cfee13d5..fcfe51cf 100644
--- a/include/wabt/type-checker.h
+++ b/include/wabt/type-checker.h
@@ -171,9 +171,7 @@ class TypeChecker {
Type expected2,
Type expected3,
const char* desc);
- Result CheckOpcode1(Opcode opcode,
- const Limits* limits = nullptr,
- bool has_address_operands = false);
+ Result CheckOpcode1(Opcode opcode, const Limits* limits = nullptr);
Result CheckOpcode2(Opcode opcode, const Limits* limits = nullptr);
Result CheckOpcode3(Opcode opcode,
const Limits* limits1 = nullptr,