summaryrefslogtreecommitdiff
path: root/src/binary-writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-writer.cc')
-rw-r--r--src/binary-writer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/binary-writer.cc b/src/binary-writer.cc
index 128f8afa..7be8ecb8 100644
--- a/src/binary-writer.cc
+++ b/src/binary-writer.cc
@@ -718,9 +718,9 @@ void BinaryWriter::WriteRelocSection(const RelocSection* reloc_section) {
WriteU32Leb128(&stream_, reloc.offset, "reloc offset");
WriteU32Leb128(&stream_, reloc.index, "reloc index");
switch (reloc.type) {
- case RelocType::GlobalAddressLEB:
- case RelocType::GlobalAddressSLEB:
- case RelocType::GlobalAddressI32:
+ case RelocType::MemoryAddressLEB:
+ case RelocType::MemoryAddressSLEB:
+ case RelocType::MemoryAddressI32:
WriteU32Leb128(&stream_, reloc.addend, "reloc addend");
break;
default: