File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
llvm/lib/Transforms/Instrumentation Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -858,13 +858,14 @@ bool IndirectCallPromoter::isProfitableToCompareVTables(
858
858
auto &Candidate = Candidates[I];
859
859
auto &VTableGUIDAndCounts = Candidate.VTableGUIDAndCounts ;
860
860
861
- LLVM_DEBUG (dbgs () << " Candidate " << I << " FunctionCount: "
862
- << Candidate.Count << " , VTableCounts:" );
863
- // Add [[maybe_unused]] since <GUID, Count> are only used by LLVM_DEBUG.
864
- for ([[maybe_unused]] auto &[GUID, Count] : VTableGUIDAndCounts)
865
- LLVM_DEBUG (dbgs () << " {" << Symtab->getGlobalVariable (GUID)->getName ()
866
- << " , " << Count << " }" );
867
- LLVM_DEBUG (dbgs () << " \n " );
861
+ LLVM_DEBUG ({
862
+ dbgs () << " Candidate " << I << " FunctionCount: " << Candidate.Count
863
+ << " , VTableCounts:" ;
864
+ for (const auto &[GUID, Count] : VTableGUIDAndCounts)
865
+ dbgs () << " {" << Symtab->getGlobalVariable (GUID)->getName () << " , "
866
+ << Count << " }" ;
867
+ dbgs () << " \n " ;
868
+ });
868
869
869
870
uint64_t CandidateVTableCount = 0 ;
870
871
You can’t perform that action at this time.
0 commit comments