CC1: Only parse command-line options that have the CC1Option flag.
authorHans Wennborg <hans@hanshq.net>
Fri, 2 Aug 2013 20:16:22 +0000 (20:16 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 2 Aug 2013 20:16:22 +0000 (20:16 +0000)
commitd1ddb9afd42774f34a8ebe52713e48e52aa3d4b3
tree13c4161771abff5f8787d0f6a3b81c327f8cf579
parent7be35cb1bf520052b051800cee7376a2b9540081
CC1: Only parse command-line options that have the CC1Option flag.

We already reject flags that don't have the CC1Option flag,
but we would previously do so after parsing the command-line
arguments.

Since the option parser now has a parameter for excluding options,
we should just use that instead.

Differential Revision: http://llvm-reviews.chandlerc.com/D1270

llvm-svn: 187668
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Headers/altivec-header.c