[cfe-commits] r118037 - /cfe/trunk/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Tue Nov 2 12:42:04 PDT 2010
Author: ddunbar
Date: Tue Nov 2 14:42:04 2010
New Revision: 118037
URL: http://llvm.org/viewvc/llvm-project?rev=118037&view=rev
Log:
Driver: Silently ignore -fasm-blocks for now instead of error'ing, this cause
some unexpected fallout.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=118037&r1=118036&r2=118037&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Nov 2 14:42:04 2010
@@ -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);
More information about the cfe-commits
mailing list