Skip to content

Commit 224933a

Browse files
committed
clang-format.
1 parent 7e89984 commit 224933a

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

llvm/include/llvm/Object/ELFTypes.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,9 @@ struct BBAddrMap {
840840
return FuncEntryCount || BBFreq || BrProb || PropellerCFG;
841841
}
842842

843-
bool hasPGOAnalysisBBData() const { return BBFreq || BrProb || PropellerCFG; }
843+
bool hasPGOAnalysisBBData() const {
844+
return BBFreq || BrProb || PropellerCFG;
845+
}
844846

845847
// Encodes to minimum bit width representation.
846848
uint8_t encode() const {
@@ -871,10 +873,12 @@ struct BBAddrMap {
871873

872874
bool operator==(const Features &Other) const {
873875
return std::tie(FuncEntryCount, BBFreq, BrProb, MultiBBRange,
874-
OmitBBEntries, CallsiteEndOffsets, BBHash, PropellerCFG) ==
876+
OmitBBEntries, CallsiteEndOffsets, BBHash,
877+
PropellerCFG) ==
875878
std::tie(Other.FuncEntryCount, Other.BBFreq, Other.BrProb,
876879
Other.MultiBBRange, Other.OmitBBEntries,
877-
Other.CallsiteEndOffsets, Other.BBHash, Other.PropellerCFG);
880+
Other.CallsiteEndOffsets, Other.BBHash,
881+
Other.PropellerCFG);
878882
}
879883
};
880884

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,9 +1432,8 @@ getBBAddrMapFeature(const MachineFunction &MF, int NumMBBSectionRanges,
14321432
(!NoFeatures && PgoAnalysisMapFeatures.isSet(PGOMapFeaturesEnum::BrProb));
14331433
bool PropellerCFGEnabled =
14341434
FuncCFGProfile &&
1435-
(AllFeatures ||
1436-
(!NoFeatures &&
1437-
PgoAnalysisMapFeatures.isSet(PGOMapFeaturesEnum::PropellerCFG)));
1435+
(AllFeatures || (!NoFeatures && PgoAnalysisMapFeatures.isSet(
1436+
PGOMapFeaturesEnum::PropellerCFG)));
14381437

14391438
if ((BBFreqEnabled || BrProbEnabled) && BBAddrMapSkipEmitBBEntries) {
14401439
MF.getFunction().getContext().emitError(
@@ -1473,8 +1472,8 @@ void AsmPrinter::emitBBAddrMapSection(const MachineFunction &MF) {
14731472
uint8_t BBAddrMapVersion = OutStreamer->getContext().getBBAddrMapVersion();
14741473
OutStreamer->emitInt8(BBAddrMapVersion);
14751474
OutStreamer->AddComment("feature");
1476-
auto Features =
1477-
getBBAddrMapFeature(MF, MBBSectionRanges.size(), HasCalls, FuncCFGProfile);
1475+
auto Features = getBBAddrMapFeature(MF, MBBSectionRanges.size(), HasCalls,
1476+
FuncCFGProfile);
14781477
OutStreamer->emitInt8(Features.encode());
14791478
// Emit BB Information for each basic block in the function.
14801479
if (Features.MultiBBRange) {

0 commit comments

Comments
 (0)