case Action::PrecompileJobClass:
case Action::CompileJobClass:
return new tools::Clang(*this);
- case Action::AssembleJobClass: {
- if (useIntegratedAs())
- return new tools::ClangAs(*this);
- else
- return new tools::darwin::Assemble(*this);
- break;
- }
+ case Action::AssembleJobClass:
+ return new tools::darwin::Assemble(*this);
case Action::LinkJobClass:
return new tools::darwin::Link(*this);
case Action::LipoJobClass:
Tool *OpenBSD::constructTool(Action::ActionClass AC) const {
switch (AC) {
- case Action::AssembleJobClass: {
- if (useIntegratedAs())
- return new tools::ClangAs(*this);
- else
- return new tools::openbsd::Assemble(*this);
- break;
- }
+ case Action::AssembleJobClass:
+ return new tools::openbsd::Assemble(*this);
case Action::LinkJobClass:
return new tools::openbsd::Link(*this);
default:
Tool *Bitrig::constructTool(Action::ActionClass AC) const {
switch (AC) {
- case Action::AssembleJobClass: {
- if (useIntegratedAs())
- return new tools::ClangAs(*this);
- else
- return new tools::bitrig::Assemble(*this);
- break;
- }
+ case Action::AssembleJobClass:
+ return new tools::bitrig::Assemble(*this);
case Action::LinkJobClass:
return new tools::bitrig::Link(*this); break;
default:
Tool *FreeBSD::constructTool(Action::ActionClass AC) const {
switch (AC) {
case Action::AssembleJobClass:
- if (useIntegratedAs())
- return new tools::ClangAs(*this);
- else
- return new tools::freebsd::Assemble(*this);
- break;
+ return new tools::freebsd::Assemble(*this);
case Action::LinkJobClass:
return new tools::freebsd::Link(*this); break;
default:
Tool *NetBSD::constructTool(Action::ActionClass AC) const {
switch (AC) {
case Action::AssembleJobClass:
- if (useIntegratedAs())
- return new tools::ClangAs(*this);
- else
- return new tools::netbsd::Assemble(*this);
- break;
+ return new tools::netbsd::Assemble(*this);
case Action::LinkJobClass:
return new tools::netbsd::Link(*this);
- break;
default:
return Generic_GCC::constructTool(AC);
}
Tool *Linux::constructTool(Action::ActionClass AC) const {
switch (AC) {
case Action::AssembleJobClass:
- if (useIntegratedAs())
- return new tools::ClangAs(*this);
- else
- return new tools::linuxtools::Assemble(*this);
- break;
+ return new tools::linuxtools::Assemble(*this);
case Action::LinkJobClass:
return new tools::linuxtools::Link(*this); break;
default:
case Action::CompileJobClass:
return new tools::Clang(*this);
case Action::AssembleJobClass:
- if (!useIntegratedAs() &&
- getTriple().getEnvironment() == llvm::Triple::MachO)
+ if (getTriple().getEnvironment() == llvm::Triple::MachO)
return new tools::darwin::Assemble(*this);
- else
- return new tools::ClangAs(*this);
+ llvm_unreachable("We only have the integrated assembler on this TC");
break;
case Action::LinkJobClass:
return new tools::visualstudio::Link(*this);