diff options
| author | Sam Clegg <sbc@chromium.org> | 2018-04-27 00:17:21 +0000 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2018-04-27 00:17:21 +0000 |
| commit | d5504a0a6261f59482c1d6d9a2d022757b795aa7 (patch) | |
| tree | 28f5a27fc1230544ccf01c8adf781c781597ea0e /llvm/lib/MC/WasmObjectWriter.cpp | |
| parent | 34ec0bfb5ecee851d31d77a21dd69d49d58eb6b5 (diff) | |
| download | bcm5719-llvm-d5504a0a6261f59482c1d6d9a2d022757b795aa7.tar.gz bcm5719-llvm-d5504a0a6261f59482c1d6d9a2d022757b795aa7.zip | |
[WebAssembly] Section symbols must have local binding
Summary: Also test for symbols information in test/MC/WebAssembly/debug-info.ll.
Subscribers: jfb, dschuff, jgravelle-google, aheejin, sunfish, JDevlieghere, llvm-commits
Differential Revision: https://reviews.llvm.org/D46160
llvm-svn: 331005
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
| -rw-r--r-- | llvm/lib/MC/WasmObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp index 88bd046ec6e..05fc3362745 100644 --- a/llvm/lib/MC/WasmObjectWriter.cpp +++ b/llvm/lib/MC/WasmObjectWriter.cpp @@ -1220,7 +1220,7 @@ void WasmObjectWriter::writeObject(MCAssembler &Asm, wasm::WasmSymbolInfo Info; Info.Name = SectionSym->getName(); Info.Kind = wasm::WASM_SYMBOL_TYPE_SECTION; - Info.Flags = 0; + Info.Flags = wasm::WASM_SYMBOL_BINDING_LOCAL; Info.ElementIndex = ElementIndex; SymbolIndices[SectionSym] = SymbolInfos.size(); SymbolInfos.emplace_back(Info); |

