from Linux/OpenBSD code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118419
91177308-0d34-0410-b5e6-
96231b3b80d8
else
Key = JA.getKind();
+ bool UseIntegratedAs = C.getArgs().hasFlag(options::OPT_integrated_as,
+ options::OPT_no_integrated_as,
+ IsIntegratedAssemblerDefault());
+
Tool *&T = Tools[Key];
if (!T) {
switch (Key) {
case Action::AssembleJobClass:
- T = new tools::freebsd::Assemble(*this); break;
+ if (UseIntegratedAs)
+ T = new tools::ClangAs(*this);
+ else
+ T = new tools::freebsd::Assemble(*this);
case Action::LinkJobClass:
T = new tools::freebsd::Link(*this); break;
default: