]> granicus.if.org Git - clang/commit
Reapply a subset of r167567 to clean up Darwin-specific code for invoking gcc.
authorBob Wilson <bob.wilson@apple.com>
Fri, 23 Nov 2012 06:14:39 +0000 (06:14 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 23 Nov 2012 06:14:39 +0000 (06:14 +0000)
commit66b8a6671bb5df540dd7200a5286f7ed7a72c1cc
tree7f6dc980f302a3e820746f41a9c986b13fdba8be
parent4d9f4e5bfa701fc870e3c481f93f1fcc52d327bb
Reapply a subset of r167567 to clean up Darwin-specific code for invoking gcc.

Unlike my previous attempt at this, this patch leaves intact the check for
whether clang can handle the input file type, and for non-Darwin toolchains it
will invoke gcc for things it cannot handle. For Darwin toolchains, the
behavior reported in pr14338 still occurs with this patch, but that is a
definite improvement from what happens currently, where it just crashes with
an assertion failure.

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