]> granicus.if.org Git - clang/commit
[modules-ts] Fold together -x c++ and -x c++-module at -cc1 level.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 18 Apr 2017 21:55:37 +0000 (21:55 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 18 Apr 2017 21:55:37 +0000 (21:55 +0000)
commit3c551f7deeef15e4cc5be51d8fddbf7812f89924
treefbf27c5a8e211345bc73b52e1d907b5fa705eb9e
parent961ed8002bce57c3ab6d138853983c629bf058e4
[modules-ts] Fold together -x c++ and -x c++-module at -cc1 level.

The driver needs to know whether it's building a module interface or
implementation unit because it affects which outputs it produces and how it
builds the command pipeline. But the frontend doesn't need to know and should
not care: all it needs to know is what action it is being asked to perform on
the input.

(This is in preparation for permitting -emit-obj to be used on a module
interface unit to produce object code without going via a "full" PCM file.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300611 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/modules-ts.cpp