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 cdaea98..7ba1dc8 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -1496,16 +1496,9 @@
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);