clang-cl: parse (but don't support) the /o flag
authorHans Wennborg <hans@hanshq.net>
Mon, 9 Sep 2013 19:04:49 +0000 (19:04 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 9 Sep 2013 19:04:49 +0000 (19:04 +0000)
commit2102df96a6176bc77c5da9d78f85c5d673106b2d
treef16d5108af79968ea287b2d71105315c989a67f2
parent856191b0d1e426eb4272bc21e718c9db5478fde5
clang-cl: parse (but don't support) the /o flag

Apparently folks run into this (PR17097). The flag is not supported by
MSVC either, but we should parse it so we don't get confused when it occurs.

This changes the clang-cl output for "clang-cl /c /o foo.obj" from:

  clang-cl.exe: error: no such file or directory: '/o'
  clang-cl.exe: error: no such file or directory: 'foo.obj'

to:

  clang-cl.exe: warning: argument unused during compilation: '/o bajs.obj'

llvm-svn: 190323
clang/include/clang/Driver/CLCompatOptions.td
clang/test/Driver/cl-options.c