File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 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) {
9595template <std::byte... Bytes>
9696struct 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
10599template <std::byte Byte>
106100struct 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-
117102constexpr ByteSequence<
118103 WasmBinaryEncoding::Type::i32 , WasmBinaryEncoding::Type::i64 ,
119104 WasmBinaryEncoding::Type::f32 , WasmBinaryEncoding::Type::f64 ,
You can’t perform that action at this time.
0 commit comments