Implemented #1573. (@llvm.used)

Sorry, I failed to fix the commits. (See #1626)