diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-19 03:26:40 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-19 03:26:40 +0000 |
commit | 0bfb21e4b0f53c3e4679502149a00f8438d069ad (patch) | |
tree | 1b3ba4189fac19c99635c28836312d0d96c8f3a5 /clang/lib/Driver/Driver.cpp | |
parent | efba4ef9aed256c007f046ba22bb1bdf5124f8b7 (diff) | |
download | bcm5719-llvm-0bfb21e4b0f53c3e4679502149a00f8438d069ad.tar.gz bcm5719-llvm-0bfb21e4b0f53c3e4679502149a00f8438d069ad.zip |
Use Option::matches instead of direct ID comparison.
llvm-svn: 89305
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index a696f33d0a8..ce1ac3b7569 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -592,7 +592,7 @@ void Driver::BuildUniversalActions(const ArgList &Args, it != ie; ++it) { Arg *A = *it; - if (A->getOption().getId() == options::OPT_arch) { + if (A->getOption().matches(options::OPT_arch)) { // Validate the option here; we don't save the type here because its // particular spelling may participate in other driver choices. llvm::Triple::ArchType Arch = @@ -731,7 +731,7 @@ void Driver::BuildActions(const ArgList &Args, ActionList &Actions) const { // necessary. Inputs.push_back(std::make_pair(types::TY_Object, A)); - } else if (A->getOption().getId() == options::OPT_x) { + } else if (A->getOption().matches(options::OPT_x)) { InputTypeArg = A; InputType = types::lookupTypeForTypeSpecifier(A->getValue(Args)); @@ -985,7 +985,7 @@ void Driver::BuildJobs(Compilation &C) const { // FIXME: Use iterator. for (ArgList::const_iterator it = C.getArgs().begin(), ie = C.getArgs().end(); it != ie; ++it) { - if ((*it)->isClaimed() && (*it)->getOption().matches(Opt.getId())) { + if ((*it)->isClaimed() && (*it)->getOption().matches(&Opt)) { DuplicateClaimed = true; break; } |