aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-11-08 01:03:34 +0000
committerBob Wilson <bob.wilson@apple.com>2012-11-08 01:03:34 +0000
commit85b7f7ddf2f09778ec303f5a39f9e67e3aae1115 (patch)
treef086f2a21c75994babef8c69c741036256cfd3a1 /lib/Driver/Driver.cpp
parent64c4f29ff3b98d412e0235504364096e997b04bb (diff)
Rip out a bunch of code for invoking gcc from clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 9881bbaca3..0c1641007a 100644
--- a/lib/Driver/Driver.cpp
+++ b/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.
///