]> granicus.if.org Git - clang/commit
[WebAssembly] Only enable --gc-sections when optimizations are enabled.
authorDan Gohman <dan433584@gmail.com>
Thu, 7 Jan 2016 00:32:04 +0000 (00:32 +0000)
committerDan Gohman <dan433584@gmail.com>
Thu, 7 Jan 2016 00:32:04 +0000 (00:32 +0000)
commitbaee417874ed738ed3978fd08c2f5273f9d4e692
treea324d6f526738c68ce210d387d86c39edcb583dc
parent2b71f2cb4db520bc83b10e621d17142ed96d1540
[WebAssembly] Only enable --gc-sections when optimizations are enabled.

Also, revamp the wasm-toolchain.c test and add a test to ensure that
a user-supplied --no-gc-sections comes after --gc-sections.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257004 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/wasm-toolchain.c