From: Daniel Dunbar Date: Tue, 2 Nov 2010 19:42:04 +0000 (+0000) Subject: Driver: Silently ignore -fasm-blocks for now instead of error'ing, this cause X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=168943947a42d6819dce56b420dc5aef4d0831ce;p=clang Driver: Silently ignore -fasm-blocks for now instead of error'ing, this cause some unexpected fallout. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118037 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index cdaea98587..7ba1dc8be7 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1496,16 +1496,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-fno-spell-checking"); - // -fasm-blocks is disallowed except on X86, where we just ignore it. - if (Args.hasFlag(options::OPT_fasm_blocks, options::OPT_fno_asm_blocks, - false)) { - if (getToolChain().getTriple().getArch() != llvm::Triple::x86 && - getToolChain().getTriple().getArch() != llvm::Triple::x86_64) - D.Diag(clang::diag::err_drv_clang_unsupported_per_platform) - << "-fasm-blocks"; - } - - // -fasm-blocks is disallowed except on X86, where we just ignore it. + // Silently ignore -fasm-blocks for now. + (void) Args.hasFlag(options::OPT_fasm_blocks, options::OPT_fno_asm_blocks, + false); if (Arg *A = Args.getLastArg(options::OPT_fshow_overloads_EQ)) A->render(Args, CmdArgs);