diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-03-18 23:56:07 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-03-18 23:56:07 +0000 |
commit | 8a1115f382cd61f560b3429a04ddaa70d9409b71 (patch) | |
tree | db317d690aecdc9dca7ace91d1dd204ed63ecc62 /lib/Driver/ToolChain.cpp | |
parent | 07c5908fa10c84144907bc699751dc16d4dcb1f8 (diff) |
Centralize the logic for using the integrated assembler.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChain.cpp')
-rw-r--r-- | lib/Driver/ToolChain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp index e5ddfd10d5..5322a6dae2 100644 --- a/lib/Driver/ToolChain.cpp +++ b/lib/Driver/ToolChain.cpp @@ -76,6 +76,8 @@ Tool &ToolChain::SelectTool(const JobAction &JA) const { if (getDriver().ShouldUseClangCompiler(JA)) T = new tools::Clang(*this); + else if (Key == Action::AssembleJobClass && useIntegratedAs()) + T = new tools::ClangAs(*this); else T = constructTool(Key); |