@@ -8401,7 +8401,7 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printCallGraphInfo() {
84018401
84028402 ListScope CGI (W, " callgraph_info" );
84038403
8404- for (const auto &El : this ->FuncCGInfos ) {
8404+ for (const auto &El : this ->FuncCGInfos ) {
84058405 DictScope D (W, " Function" );
84068406 typename ELFT::uint FuncEntryPc = El.first ;
84078407 FunctionCallgraphInfo CGInfo = El.second ;
@@ -8415,11 +8415,10 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printCallGraphInfo() {
84158415 W.printNumber (" Kind" , (uint64_t )CGInfo.Kind );
84168416 if (CGInfo.Kind == FunctionKind::INDIRECT_TARGET_KNOWN_TID)
84178417 W.printHex (" TypeId" , CGInfo.FunctionTypeId );
8418- W.printNumber (" NumIndirectCallSites" ,
8419- CGInfo.IndirectCallsites .size ());
8418+ W.printNumber (" NumIndirectCallSites" , CGInfo.IndirectCallsites .size ());
84208419 if (CGInfo.IndirectCallsites .size () > 0 ) {
84218420 ListScope ICSs (W, " IndirectCallsites" );
8422- for (auto &[IndirCallSitePc, TypeId] : CGInfo.IndirectCallsites ) {
8421+ for (auto &[IndirCallSitePc, TypeId] : CGInfo.IndirectCallsites ) {
84238422 DictScope ICS (W, " IndirectCallsite" );
84248423 W.printHex (" Address" , IndirCallSitePc);
84258424 W.printHex (" TypeId" , TypeId);
@@ -8428,14 +8427,14 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printCallGraphInfo() {
84288427 W.printNumber (" NumDirectCallSites" , CGInfo.DirectCallees .size ());
84298428 if (CGInfo.DirectCallees .size () > 0 ) {
84308429 ListScope DCs (W, " DirectCallees" );
8431- for (auto CalleePC : CGInfo.DirectCallees ) {
8432- DictScope DCs (W, " DirectCallee" );
8430+ for (auto CalleePC : CGInfo.DirectCallees ) {
8431+ DictScope DCs (W, " DirectCallee" );
84338432 W.printHex (" Address" , CalleePC);
84348433 std::string CalleeSymName = GetFunctionName (CalleePC);
84358434 if (!CalleeSymName.empty ())
84368435 W.printString (" Name" , CalleeSymName);
8437- }
8438- }
8436+ }
8437+ }
84398438 }
84408439}
84418440
0 commit comments