diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-10-19 22:37:06 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-10-19 22:37:06 +0000 |
commit | 66e2b20d3981d0e2c13345a6155c6abbffdafadb (patch) | |
tree | 4ea43153f208f01ca49b062f4a53194f8539eaf9 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | fc790901d2e39e618b14582b7ba54adec19e2113 (diff) | |
download | bcm5719-llvm-66e2b20d3981d0e2c13345a6155c6abbffdafadb.tar.gz bcm5719-llvm-66e2b20d3981d0e2c13345a6155c6abbffdafadb.zip |
[Options] Make Option non clang specific.
llvm-svn: 166348
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 5327951ab70..4f0cfa80019 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2330,7 +2330,7 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &Res, // Issue errors on arguments that are not valid for CC1. for (ArgList::iterator I = Args->begin(), E = Args->end(); I != E; ++I) { - if (!(*I)->getOption().isCC1Option()) { + if (!(*I)->getOption().hasFlag(options::CC1Option)) { Diags.Report(diag::err_drv_unknown_argument) << (*I)->getAsString(*Args); Success = false; } |