[WebAssembly] Setting export_name implies llvm.used
authorSam Clegg <sbc@chromium.org>
Fri, 13 Dec 2019 22:44:06 +0000 (14:44 -0800)
committerSam Clegg <sbc@chromium.org>
Mon, 16 Dec 2019 22:48:38 +0000 (14:48 -0800)
commit0a1e349a7933f7880971533175e11b4bfd22bd53
treeac749e53cd1e3605ce2c1e0a42915498ac7eaf0b
parent376cf43729c8025eecbd2969522c5687f2a3919f
[WebAssembly] Setting export_name implies llvm.used

This change updates the clang front end to add symbols to llvm.used
when they have explicit export_name attribute.

Differential Revision: https://reviews.llvm.org/D71493
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/CodeGen/wasm-export-name.c