commit | d6ef8da31780ea2fbce89873528295e5983d8323 | [log] [tgz] |
---|---|---|
author | Sam Clegg <sbc@chromium.org> | Thu Feb 07 01:24:44 2019 +0000 |
committer | Sam Clegg <sbc@chromium.org> | Thu Feb 07 01:24:44 2019 +0000 |
tree | 5bb4ed450c1f8c1235d6135b0923565ac561c7eb | |
parent | 40b1c0746231ebbd1364526638a494d8dc2a25af [diff] [blame] |
[WebAssembly] Add symbol flag to the binary format llvm.used Summary: Rather than add a new attribute See https://github.com/WebAssembly/tool-conventions/issues/64 Subscribers: dschuff, jgravelle-google, aheejin, sunfish, rupprecht, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D57864 llvm-svn: 353360
diff --git a/llvm/lib/MC/MCAsmInfoWasm.cpp b/llvm/lib/MC/MCAsmInfoWasm.cpp index 65a937b..ce6ec7e 100644 --- a/llvm/lib/MC/MCAsmInfoWasm.cpp +++ b/llvm/lib/MC/MCAsmInfoWasm.cpp
@@ -18,6 +18,7 @@ MCAsmInfoWasm::MCAsmInfoWasm() { HasIdentDirective = true; + HasNoDeadStrip = true; WeakRefDirective = "\t.weak\t"; PrivateGlobalPrefix = ".L"; PrivateLabelPrefix = ".L";