projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a5fb12
)
[WebAssembly] Add missing SymbolRef update from rL352551
author
Sam Clegg
<sbc@chromium.org>
Wed, 30 Jan 2019 00:15:48 +0000
(
00:15
+0000)
committer
Sam Clegg
<sbc@chromium.org>
Wed, 30 Jan 2019 00:15:48 +0000
(
00:15
+0000)
This change broke some MC tests which are now fixed.
Differential Revision: https://reviews.llvm.org/D57424
llvm-svn: 352573
llvm/lib/Object/WasmObjectFile.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Object/WasmObjectFile.cpp
b/llvm/lib/Object/WasmObjectFile.cpp
index
6f0a5a4
..
d2421cb
100644
(file)
--- 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));
}