[llvm] r352573 - [WebAssembly] Add missing SymbolRef update from rL352551
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 29 16:15:48 PST 2019
Author: sbc
Date: Tue Jan 29 16:15:48 2019
New Revision: 352573
URL: http://llvm.org/viewvc/llvm-project?rev=352573&view=rev
Log:
[WebAssembly] Add missing SymbolRef update from rL352551
This change broke some MC tests which are now fixed.
Differential Revision: https://reviews.llvm.org/D57424
Modified:
llvm/trunk/lib/Object/WasmObjectFile.cpp
Modified: llvm/trunk/lib/Object/WasmObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/WasmObjectFile.cpp?rev=352573&r1=352572&r2=352573&view=diff
==============================================================================
--- llvm/trunk/lib/Object/WasmObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/WasmObjectFile.cpp Tue Jan 29 16:15:48 2019
@@ -1422,8 +1422,8 @@ symbol_iterator WasmObjectFile::getReloc
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));
}
More information about the llvm-commits
mailing list