summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-01-30 00:15:48 +0000
committerSam Clegg <sbc@chromium.org>2019-01-30 00:15:48 +0000
commitc7d2e5f1542777d4f3b8a2b5e46480d437b4e7b9 (patch)
tree208348d244a7083066b63539027652eb7a98067f /llvm/lib/Object
parent2a5fb1252e2d37eca397a54d8b15a0d9cc5391bb (diff)
downloadbcm5719-llvm-c7d2e5f1542777d4f3b8a2b5e46480d437b4e7b9.tar.gz
bcm5719-llvm-c7d2e5f1542777d4f3b8a2b5e46480d437b4e7b9.zip
[WebAssembly] Add missing SymbolRef update from rL352551
This change broke some MC tests which are now fixed. Differential Revision: https://reviews.llvm.org/D57424 llvm-svn: 352573
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r--llvm/lib/Object/WasmObjectFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp
index 6f0a5a4f66f..d2421cb95ee 100644
--- a/llvm/lib/Object/WasmObjectFile.cpp
+++ b/llvm/lib/Object/WasmObjectFile.cpp
@@ -1422,8 +1422,8 @@ symbol_iterator WasmObjectFile::getRelocationSymbol(DataRefImpl Ref) const {
if (Rel.Type == wasm::R_WEBASSEMBLY_TYPE_INDEX_LEB)
return symbol_end();
DataRefImpl Sym;
- Sym.d.a = Rel.Index;
- Sym.d.b = 0;
+ Sym.d.a = 1;
+ Sym.d.b = Rel.Index;
return symbol_iterator(SymbolRef(Sym, this));
}
OpenPOWER on IntegriCloud