]> granicus.if.org Git - clang/commit
[Driver] Simplify -lgcc & -lgcc_s
authorFangrui Song <maskray@google.com>
Sun, 14 Jul 2019 06:46:46 +0000 (06:46 +0000)
committerFangrui Song <maskray@google.com>
Sun, 14 Jul 2019 06:46:46 +0000 (06:46 +0000)
commit05629895331165f6f6024553c8d2e00de3f15fdf
treea18e73d75a2362165d429b43f0cccba30eacf3a2
parent47e55d20c4f679770465e02a07f02fbc06adbc17
[Driver] Simplify -lgcc & -lgcc_s

gcc defaults to -shared-libgcc in C++ mode.
Letting getLibGccType() return SharedLibGcc simplifies the logic.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366012 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/CommonArgs.cpp