summaryrefslogtreecommitdiff
path: root/src/literal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/literal.h')
-rw-r--r--src/literal.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/literal.h b/src/literal.h
index bce578d46..0b87cd189 100644
--- a/src/literal.h
+++ b/src/literal.h
@@ -23,6 +23,7 @@
#include "compiler-support.h"
#include "support/hash.h"
#include "support/name.h"
+#include "support/small_vector.h"
#include "support/utilities.h"
#include "wasm-type.h"
@@ -179,8 +180,6 @@ public:
static void printDouble(std::ostream& o, double d);
static void printVec128(std::ostream& o, const std::array<uint8_t, 16>& v);
- friend std::ostream& operator<<(std::ostream& o, Literal literal);
-
Literal countLeadingZeroes() const;
Literal countTrailingZeroes() const;
Literal popCount() const;
@@ -445,6 +444,11 @@ private:
Literal avgrUInt(const Literal& other) const;
};
+using Literals = SmallVector<Literal, 1>;
+
+std::ostream& operator<<(std::ostream& o, wasm::Literal literal);
+std::ostream& operator<<(std::ostream& o, wasm::Literals literals);
+
} // namespace wasm
namespace std {