summaryrefslogtreecommitdiff
path: root/src/common.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.cc')
-rw-r--r--src/common.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.cc b/src/common.cc
index 634d3a6c..a1261d37 100644
--- a/src/common.cc
+++ b/src/common.cc
@@ -31,6 +31,12 @@
namespace wabt {
+Location EmptyLocation() {
+ Location result;
+ WABT_ZERO_MEMORY(result);
+ return result;
+}
+
Reloc::Reloc(RelocType type, Offset offset, Index index, int32_t addend)
: type(type), offset(offset), index(index), addend(addend) {}