mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 01:31:05 +00:00
Simplify code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175559 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
909a0e0e95
commit
fef8b70f9d
@ -469,8 +469,7 @@ public:
|
||||
|
||||
template<class Opt>
|
||||
void apply(Opt &O) const {
|
||||
for (unsigned i = 0, e = static_cast<unsigned>(Values.size());
|
||||
i != e; ++i)
|
||||
for (size_t i = 0, e = Values.size(); i != e; ++i)
|
||||
O.getParser().addLiteralOption(Values[i].first, Values[i].second.first,
|
||||
Values[i].second.second);
|
||||
}
|
||||
@ -629,8 +628,7 @@ public:
|
||||
else
|
||||
ArgVal = ArgName;
|
||||
|
||||
for (unsigned i = 0, e = static_cast<unsigned>(Values.size());
|
||||
i != e; ++i)
|
||||
for (size_t i = 0, e = Values.size(); i != e; ++i)
|
||||
if (Values[i].Name == ArgVal) {
|
||||
V = Values[i].V.getValue();
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user