mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
Use range-based for loop.
llvm-svn: 210082
This commit is contained in:
parent
9939b5ab5e
commit
076caf7897
@ -107,10 +107,12 @@ public:
|
||||
|
||||
void dump(raw_ostream &os) const override {
|
||||
os << "OUTPUT_FORMAT(";
|
||||
for (auto fb = _formats.begin(), fe = _formats.end(); fb != fe; ++fb) {
|
||||
if (fb != _formats.begin())
|
||||
bool first = true;
|
||||
for (StringRef format : _formats) {
|
||||
if (!first)
|
||||
os << ",";
|
||||
os << *fb;
|
||||
first = false;
|
||||
os << format;
|
||||
}
|
||||
os << ")\n";
|
||||
}
|
||||
@ -166,8 +168,7 @@ public:
|
||||
for (const Path &path : getPaths()) {
|
||||
if (!first)
|
||||
os << " ";
|
||||
else
|
||||
first = false;
|
||||
first = false;
|
||||
if (path._asNeeded)
|
||||
os << "AS_NEEDED(";
|
||||
os << path._path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user