Skip to content

Commit 51f24bf

Browse files
committed
debug windows bitfield
1 parent e41238a commit 51f24bf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,8 +1425,15 @@ getBBAddrMapFeature(const MachineFunction &MF, int NumMBBSectionRanges) {
14251425
}
14261426
dbgs() << "getBBAddrMapFeature::SkipEmitBBEntries: " << SkipEmitBBEntries
14271427
<< "\n";
1428-
return {FuncEntryCountEnabled, BBFreqEnabled, BrProbEnabled,
1429-
MF.hasBBSections() && NumMBBSectionRanges > 1, SkipEmitBBEntries};
1428+
llvm::object::BBAddrMap::Features F1 = {true, false, false, false, true};
1429+
dbgs() << "F1.NoBBEntries: " << F1.NoBBEntries << "\n";
1430+
llvm::object::BBAddrMap::Features F2 =
1431+
llvm::object::BBAddrMap::Features{true, false, false, false, true};
1432+
dbgs() << "F2.NoBBEntries: " << F2.NoBBEntries << "\n";
1433+
1434+
return llvm::object::BBAddrMap::Features{
1435+
FuncEntryCountEnabled, BBFreqEnabled, BrProbEnabled,
1436+
MF.hasBBSections() && NumMBBSectionRanges > 1, SkipEmitBBEntries};
14301437
}
14311438

14321439
void AsmPrinter::emitBBAddrMapSection(const MachineFunction &MF) {

0 commit comments

Comments
 (0)