CmdArgs.push_back("-fexceptions");
}
-/// \brief Check if the toolchain should use the integrated assembler.
-static bool ShouldUseIntegratedAssembler(const ArgList &Args,
- const ToolChain &TC) {
- // FIXME: inline
- return TC.useIntegratedAs(Args);
-}
-
static bool ShouldDisableCFI(const ArgList &Args,
const ToolChain &TC) {
bool Default = true;
if (TC.getTriple().isOSDarwin()) {
// The native darwin assembler doesn't support cfi directives, so
// we disable them if we think the .s file will be passed to it.
- Default = ShouldUseIntegratedAssembler(Args, TC);
+ Default = TC.useIntegratedAs(Args);
}
return !Args.hasFlag(options::OPT_fdwarf2_cfi_asm,
options::OPT_fno_dwarf2_cfi_asm,
const ToolChain &TC) {
bool UseDwarfDirectory = Args.hasFlag(options::OPT_fdwarf_directory_asm,
options::OPT_fno_dwarf_directory_asm,
- ShouldUseIntegratedAssembler(Args, TC));
+ TC.useIntegratedAs(Args));
return !UseDwarfDirectory;
}
// -fmodules-autolink (on by default when modules is enabled) automatically
// links against libraries for imported modules. This requires the
// integrated assembler.
- if (HaveModules && ShouldUseIntegratedAssembler(Args, getToolChain()) &&
+ if (HaveModules && getToolChain().useIntegratedAs(Args) &&
Args.hasFlag(options::OPT_fmodules_autolink,
options::OPT_fno_modules_autolink,
true)) {