diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-11-08 01:03:34 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-11-08 01:03:34 +0000 |
commit | 0c79f3cf3e5f4bc140e728bfa3e3c6a1a170ba43 (patch) | |
tree | 14faa073f3060f747a788db5ad7044cecbb89604 /clang/lib/Driver/Driver.cpp | |
parent | d0de8ceb577fdad9ef6873914b665061b6852a2c (diff) | |
download | bcm5719-llvm-0c79f3cf3e5f4bc140e728bfa3e3c6a1a170ba43.tar.gz bcm5719-llvm-0c79f3cf3e5f4bc140e728bfa3e3c6a1a170ba43.zip |
Rip out a bunch of code for invoking gcc from clang.
llvm-svn: 167567
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 9881bbaca39..0c1641007a5 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -1729,22 +1729,6 @@ const ToolChain &Driver::getToolChain(const ArgList &Args, return *TC; } -bool Driver::ShouldUseClangCompiler(const Compilation &C, const JobAction &JA, - const llvm::Triple &Triple) const { - // Check if user requested no clang, or clang doesn't understand this type (we - // only handle single inputs for now). - if (JA.size() != 1 || - !types::isAcceptedByClang((*JA.begin())->getType())) - return false; - - // Otherwise make sure this is an action clang understands. - if (!isa<PreprocessJobAction>(JA) && !isa<PrecompileJobAction>(JA) && - !isa<CompileJobAction>(JA)) - return false; - - return true; -} - /// GetReleaseVersion - Parse (([0-9]+)(.([0-9]+)(.([0-9]+)?))?)? and return the /// grouped values as integers. Numbers which are not provided are set to 0. /// |