Skip to content

Commit 819e297

Browse files
author
Luc Forget
committed
[MLIR][WASM] NFC remove deadcode in WasmImporter
1 parent 5ebf0e1 commit 819e297

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

mlir/lib/Target/Wasm/TranslateFromWasm.cpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- TranslateFromWasm.cpp - Translating to C++ calls -------------------===//
1+
//===- TranslateFromWasm.cpp - Translating to WasmSSA dialect -------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -95,25 +95,10 @@ constexpr bool sectionShouldBeUnique(WasmSectionType secType) {
9595
template <std::byte... Bytes>
9696
struct ByteSequence {};
9797

98-
template <std::byte... Bytes1, std::byte... Bytes2>
99-
constexpr ByteSequence<Bytes1..., Bytes2...>
100-
operator+(ByteSequence<Bytes1...>, ByteSequence<Bytes2...>) {
101-
return {};
102-
}
103-
10498
/// Template class for representing a byte sequence of only one byte
10599
template <std::byte Byte>
106100
struct UniqueByte : ByteSequence<Byte> {};
107101

108-
template <typename T, T... Values>
109-
constexpr ByteSequence<std::byte(Values)...>
110-
byteSeqFromIntSeq(std::integer_sequence<T, Values...>) {
111-
return {};
112-
}
113-
114-
constexpr auto allOpCodes =
115-
byteSeqFromIntSeq(std::make_integer_sequence<int, 256>());
116-
117102
constexpr ByteSequence<
118103
WasmBinaryEncoding::Type::i32, WasmBinaryEncoding::Type::i64,
119104
WasmBinaryEncoding::Type::f32, WasmBinaryEncoding::Type::f64,

0 commit comments

Comments
 (0)