summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index a2bafda2..35e84355 100644
--- a/src/common.h
+++ b/src/common.h
@@ -27,6 +27,7 @@
#include <string>
#include <type_traits>
+#include <vector>
#include "config.h"
@@ -167,6 +168,7 @@ enum class Type {
___ = Void, /* convenient for the opcode table below */
Any = 0, /* Not actually specified, but useful for type-checking */
};
+typedef std::vector<Type> TypeVector;
enum class RelocType {
FuncIndexLEB = 0, /* e.g. immediate of call instruction */
@@ -184,6 +186,8 @@ enum class RelocType {
static const int kRelocTypeCount = WABT_ENUM_COUNT(RelocType);
struct Reloc {
+ Reloc(RelocType, size_t offset, uint32_t index, int32_t addend = 0);
+
RelocType type;
size_t offset;
uint32_t index;