[BOLT][NFC] Fix braces usage in Profile

Summary:
Refactor bolt/*/Profile to follow the braces rule for if/else/loop from
[LLVM Coding Standards](https://llvm.org/docs/CodingStandards.html).

(cherry picked from FBD33345741)
This commit is contained in:
Amir Ayupov
2021-12-28 18:29:54 -08:00
committed by Maksim Panchenko
parent 89ceb77997
commit def464aaae
6 changed files with 133 additions and 216 deletions

View File

@@ -230,9 +230,8 @@ BoltAddressTranslation::getFallthroughsInTrace(const BinaryFunction &Func,
To -= Func.getAddress();
auto Iter = Maps.find(Func.getAddress());
if (Iter == Maps.end()) {
if (Iter == Maps.end())
return NoneType();
}
const MapTy &Map = Iter->second;
auto FromIter = Map.upper_bound(From);
@@ -261,9 +260,8 @@ BoltAddressTranslation::getFallthroughsInTrace(const BinaryFunction &Func,
}
++Iter;
while (Iter->second & BRANCHENTRY && Iter != ToIter) {
while (Iter->second & BRANCHENTRY && Iter != ToIter)
++Iter;
}
if (Iter->second & BRANCHENTRY)
break;
Res.emplace_back(Src, Iter->first);