diff options
| author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-10-18 21:36:01 +0000 |
|---|---|---|
| committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-10-18 21:36:01 +0000 |
| commit | 43897975cca762079193a229d3108c5cbbc0aa1d (patch) | |
| tree | 4c0ab5b5082e9decd39718e0995c82b43444f553 /clang/lib/Frontend | |
| parent | 6bdae4b7c1ed71dbe34bbeef820e05d9e0c4f23e (diff) | |
| download | bcm5719-llvm-43897975cca762079193a229d3108c5cbbc0aa1d.tar.gz bcm5719-llvm-43897975cca762079193a229d3108c5cbbc0aa1d.zip | |
[Options] Make Option non clang specific.
llvm-svn: 166230
Diffstat (limited to 'clang/lib/Frontend')
| -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 20fd07819e1..09c48ccfdba 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2327,7 +2327,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; } |

