This patch replaces https://reviews.llvm.org/D62443 and removes the Emscripten-specific behavior. It just implements support for the NO_STRIP flag, which will allow __attribute__((used)) to be implemented.
This accompanies https://reviews.llvm.org/D62542, which will move to setting the NO_STRIP flag, and will continue to set EXPORTED for Emscripten targets for compatibility.
Update the comment?