Add visibility flag to Wasm symbol flags
commit2b1b9e5ead1e07380d9e6ecba279c0e5166b567e
authorSam Clegg <sbc@chromium.org>
Thu, 30 Nov 2017 22:34:58 +0000 (30 22:34 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 30 Nov 2017 22:34:58 +0000 (30 22:34 +0000)
tree1e5202a67566e646eee54349acdc23c335cae446
parentc5a00e0fac46bca7fb3a2667af19671d0d4b0e0e
Add visibility flag to Wasm symbol flags

The LLVM "hidden" flag needs to be passed through the Wasm
intermediate objects in order for the linker to apply
it to the final Wasm object.

The corresponding change in LLD is here: https://github.com/WebAssembly/lld/pull/14

Patch by Nicholas Wilson

Differential Revision: https://reviews.llvm.org/D40442

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319488 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/BinaryFormat/Wasm.h
include/llvm/MC/MCSymbolWasm.h
include/llvm/Object/Wasm.h
lib/MC/MCWasmStreamer.cpp
lib/MC/WasmObjectWriter.cpp
lib/Object/WasmObjectFile.cpp
test/MC/WebAssembly/visibility.ll [new file with mode: 0644]