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 915a3949..db43c08c 100644
--- a/src/binary-writer.cc
+++ b/src/binary-writer.cc
@@ -640,9 +640,9 @@ void BinaryWriter::WriteRelocSection(const RelocSection* reloc_section) {
write_u32_leb128(&stream_, reloc.offset, "reloc offset");
write_u32_leb128(&stream_, reloc.index, "reloc index");
switch (reloc.type) {
- case RelocType::MemoryAddressLEB:
- case RelocType::MemoryAddressSLEB:
- case RelocType::MemoryAddressI32:
+ case RelocType::GlobalAddressLEB:
+ case RelocType::GlobalAddressSLEB:
+ case RelocType::GlobalAddressI32:
write_u32_leb128(&stream_, reloc.addend, "reloc addend");
break;
default: