diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-11-02 19:42:04 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-11-02 19:42:04 +0000 |
commit | 168943947a42d6819dce56b420dc5aef4d0831ce (patch) | |
tree | 82af703dfaec5c2518f3ad5f65d9607cf8410222 /lib/Driver/Tools.cpp | |
parent | 6638b3a15edea25c4b1fdf8046e71d82683d8efa (diff) |
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
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
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); |