summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-06-27 05:06:41 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-06-27 05:06:41 +0000
commit4b68a05f3d29036a3bfe778255cffcd983349a13 (patch)
treefc5a188e47fdd9268d4967bea28f94c24e3f14c5 /clang/lib/Driver/ToolChains.cpp
parent5632722cab2184da3610bfec5d9ca00b8d46a815 (diff)
downloadbcm5719-llvm-4b68a05f3d29036a3bfe778255cffcd983349a13.tar.gz
bcm5719-llvm-4b68a05f3d29036a3bfe778255cffcd983349a13.zip
Driver: use GNU::Link for the Generic_GCC toolchain
This changes the behaviour of the driver for linking to match that of the Generic_GCC::Assemble. The default link should use "ld" rather than "gcc" for the linker as gcc does. This avoids the unnecessary round-tripping through gcc. It also is much more reasonable behaviour from the user's perspective. This should have been updated with SVN r195554 which changed the behaviour of Generic_GCC::Assemble. The gcc_forward test needs to be updated to mark the fact that -march is a flag for GCC not ld. This was updated as a typo fix, but added a check for a flag that is not a link flag. The bindings test covers the change for testing, and thus no new test was added. llvm-svn: 211866
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
-rw-r--r--clang/lib/Driver/ToolChains.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index d02c84d315b..c01f0326a04 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/lib/Driver/ToolChains.cpp
@@ -2102,7 +2102,7 @@ Tool *Generic_GCC::buildAssembler() const {
}
Tool *Generic_GCC::buildLinker() const {
- return new tools::gcc::Link(*this);
+ return new tools::gnutools::Link(*this);
}
void Generic_GCC::printVerboseInfo(raw_ostream &OS) const {
OpenPOWER on IntegriCloud