diff options
author | Sam Clegg <sbc@chromium.org> | 2017-09-01 17:32:01 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-09-01 17:32:01 +0000 |
commit | 13a2e899265be4ddf72e77ea697f451c580a09e2 (patch) | |
tree | add24c5c33002cea98c722058a2d0c9d89b6d641 /llvm/lib/Target | |
parent | f483817fc1c63dc3418c976790c7da6cdf54f423 (diff) | |
download | bcm5719-llvm-13a2e899265be4ddf72e77ea697f451c580a09e2.tar.gz bcm5719-llvm-13a2e899265be4ddf72e77ea697f451c580a09e2.zip |
[WebAssembly] Update relocation names to match spec
Summary: See https://github.com/WebAssembly/tool-conventions/blob/master/Linking.md
Differential Revision: https://reviews.llvm.org/D37385
llvm-svn: 312342
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp index 9cf77829f3b..995984b0361 100644 --- a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp +++ b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp @@ -73,7 +73,7 @@ WebAssemblyWasmObjectWriter::getRelocType(const MCValue &Target, case WebAssembly::fixup_code_sleb128_i32: if (IsFunction) return wasm::R_WEBASSEMBLY_TABLE_INDEX_SLEB; - return wasm::R_WEBASSEMBLY_GLOBAL_ADDR_SLEB; + return wasm::R_WEBASSEMBLY_MEMORY_ADDR_SLEB; case WebAssembly::fixup_code_sleb128_i64: llvm_unreachable("fixup_sleb128_i64 not implemented yet"); case WebAssembly::fixup_code_uleb128_i32: @@ -81,11 +81,11 @@ WebAssemblyWasmObjectWriter::getRelocType(const MCValue &Target, return wasm::R_WEBASSEMBLY_TYPE_INDEX_LEB; if (IsFunction) return wasm::R_WEBASSEMBLY_FUNCTION_INDEX_LEB; - return wasm::R_WEBASSEMBLY_GLOBAL_ADDR_LEB; + return wasm::R_WEBASSEMBLY_MEMORY_ADDR_LEB; case FK_Data_4: if (IsFunction) return wasm::R_WEBASSEMBLY_TABLE_INDEX_I32; - return wasm::R_WEBASSEMBLY_GLOBAL_ADDR_I32; + return wasm::R_WEBASSEMBLY_MEMORY_ADDR_I32; case FK_Data_8: llvm_unreachable("FK_Data_8 not implemented yet"); default: |