diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-08-20 21:41:17 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-08-20 21:41:17 +0000 |
commit | 4327557dfafe16c031691ed061f52a708e4c6b7a (patch) | |
tree | 898c3e5acef96a216d0945b4e926fb80e3812968 /lib/Driver/Driver.cpp | |
parent | d30fb9e2462d3cfe04d4f32cb40bf1edd9e3b383 (diff) |
Make Option non virtual.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 87d533dd29..240d66f80d 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -981,7 +981,7 @@ void Driver::BuildInputs(const ToolChain &TC, const DerivedArgList &Args, it != ie; ++it) { Arg *A = *it; - if (isa<InputOption>(A->getOption())) { + if (A->getOption().getKind() == Option::InputClass) { const char *Value = A->getValue(Args); types::ID Ty = types::TY_INVALID; @@ -1337,7 +1337,7 @@ void Driver::BuildJobs(Compilation &C) const { // Suppress the warning automatically if this is just a flag, and it is an // instance of an argument we already claimed. const Option &Opt = A->getOption(); - if (isa<FlagOption>(Opt)) { + if (Opt.getKind() == Option::FlagClass) { bool DuplicateClaimed = false; for (arg_iterator it = C.getArgs().filtered_begin(&Opt), |