diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-11-23 06:14:39 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-11-23 06:14:39 +0000 |
commit | 66b8a6671bb5df540dd7200a5286f7ed7a72c1cc (patch) | |
tree | 7f6dc980f302a3e820746f41a9c986b13fdba8be /lib/Driver/ToolChains.cpp | |
parent | 4d9f4e5bfa701fc870e3c481f93f1fcc52d327bb (diff) |
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
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 118bf26d37..525c05c3e7 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -194,13 +194,11 @@ Tool &Darwin::SelectTool(const Compilation &C, const JobAction &JA, case Action::BindArchClass: llvm_unreachable("Invalid tool kind."); case Action::PreprocessJobClass: - T = new tools::darwin::Preprocess(*this); break; case Action::AnalyzeJobClass: case Action::MigrateJobClass: - T = new tools::Clang(*this); break; case Action::PrecompileJobClass: case Action::CompileJobClass: - T = new tools::darwin::Compile(*this); break; + T = new tools::Clang(*this); break; case Action::AssembleJobClass: { if (UseIntegratedAs) T = new tools::ClangAs(*this); |