Simplify.

llvm-svn: 81277
This commit is contained in:
Daniel Dunbar 2009-09-08 23:37:02 +00:00
parent 953b8d1f15
commit 7b57404dea
1 changed files with 2 additions and 7 deletions

View File

@ -601,14 +601,9 @@ void Driver::BuildUniversalActions(const ArgList &Args,
Arg *A = *it; Arg *A = *it;
if (A->getOption().getId() == options::OPT_arch) { if (A->getOption().getId() == options::OPT_arch) {
const char *Name = A->getValue(Args);
// FIXME: We need to handle canonicalization of the specified
// arch?
A->claim(); A->claim();
if (ArchNames.insert(Name)) if (ArchNames.insert(A->getValue(Args)))
Archs.push_back(Name); Archs.push_back(A->getValue(Args));
} }
} }