]> granicus.if.org Git - clang/commitdiff
Driver: Silently ignore -fasm-blocks for now instead of error'ing, this cause
authorDaniel Dunbar <daniel@zuster.org>
Tue, 2 Nov 2010 19:42:04 +0000 (19:42 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 2 Nov 2010 19:42:04 +0000 (19:42 +0000)
some unexpected fallout.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118037 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index cdaea98587654ee69988bfb75679bd6656eec899..7ba1dc8be7eda96fe7fc678048c0f05a720c5046 100644 (file)
@@ -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);