diff options
author | Douglas Katzman <dougk@google.com> | 2015-06-12 15:45:21 +0000 |
---|---|---|
committer | Douglas Katzman <dougk@google.com> | 2015-06-12 15:45:21 +0000 |
commit | 0024909c68b272a5e8e3406dbe67d7f089ea70ef (patch) | |
tree | ef75458e56bd2c7e477fef31b1a90c2f657622c8 /clang/lib/Driver/Driver.cpp | |
parent | f367dd90cc2f51f43ad1f2d93b3e69613f43f3f1 (diff) | |
download | bcm5719-llvm-0024909c68b272a5e8e3406dbe67d7f089ea70ef.tar.gz bcm5719-llvm-0024909c68b272a5e8e3406dbe67d7f089ea70ef.zip |
Allow ToolChain to decide if Clang is not the right C compiler.
Removed comment in Driver::ShouldUseClangCompiler implying that there
was an opt-out ability at that point - there isn't.
Differential Revision: http://reviews.llvm.org/D10246
llvm-svn: 239608
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index ec289875a8b..5b34f9842dc 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -2117,13 +2117,12 @@ const ToolChain &Driver::getToolChain(const ArgList &Args, } bool Driver::ShouldUseClangCompiler(const JobAction &JA) const { - // Check if user requested no clang, or clang doesn't understand this type (we - // only handle single inputs for now). + // Say "no" if there is not exactly one input of a type clang understands. if (JA.size() != 1 || !types::isAcceptedByClang((*JA.begin())->getType())) return false; - // Otherwise make sure this is an action clang understands. + // And say "no" if this is not a kind of action clang understands. if (!isa<PreprocessJobAction>(JA) && !isa<PrecompileJobAction>(JA) && !isa<CompileJobAction>(JA) && !isa<BackendJobAction>(JA)) return false; |