Skip to content

Commit 09d3a87

Browse files
committed
Format
1 parent bdb8683 commit 09d3a87

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

llvm/tools/llvm-readobj/ELFDumper.cpp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5490,27 +5490,27 @@ template <class ELFT> void GNUELFDumper<ELFT>::printCallGraphInfo() {
54905490
return;
54915491
using FunctionCallgraphInfo =
54925492
::FunctionCallgraphInfoImpl<typename ELFT::uint>;
5493-
5494-
auto GetFunctionName = [&](typename ELFT::uint EntryPc){
5493+
5494+
auto GetFunctionName = [&](typename ELFT::uint EntryPc) {
54955495
SmallVector<uint32_t> FuncSymIndexes =
54965496
this->getSymbolIndexesForFunctionAddress(EntryPc, std::nullopt);
54975497
if (FuncSymIndexes.empty())
54985498
return std::string("");
5499-
5499+
55005500
SmallVector<std::string> FuncSymNames;
55015501
for (uint32_t Index : FuncSymIndexes)
55025502
FuncSymNames.push_back(this->getStaticSymbolName(Index));
5503-
return join(FuncSymNames, ", ");
5503+
return join(FuncSymNames, ", ");
55045504
};
5505-
5505+
55065506
OS << "Per-function call graph information:: \n";
55075507
for (const auto &El : this->FuncCGInfos) {
55085508
typename ELFT::uint FuncEntryPc = El.first;
55095509
FunctionCallgraphInfo CGInfo = El.second;
5510-
std::string FuncSymNames = GetFunctionName(FuncEntryPc);
5510+
std::string FuncSymNames = GetFunctionName(FuncEntryPc);
55115511
if (!FuncSymNames.empty())
55125512
OS << "\nFunction:: " << FuncSymNames;
5513-
OS << "\nFunction PC:: " << format("0x%lx", FuncEntryPc);
5513+
OS << "\nFunction PC:: " << format("0x%lx", FuncEntryPc);
55145514
OS << "\nFormatVersionNumber:: " << CGInfo.FormatVersionNumber;
55155515
OS << "\nFunction Kind:: " << GetFuntionKindString(CGInfo.Kind);
55165516
if (CGInfo.Kind == FunctionKind::INDIRECT_TARGET_KNOWN_TID)
@@ -5532,15 +5532,15 @@ template <class ELFT> void GNUELFDumper<ELFT>::printCallGraphInfo() {
55325532
if (CGInfo.DirectCallees.size() > 0) {
55335533
OS << "\n{";
55345534
for (auto CalleePC : CGInfo.DirectCallees) {
5535-
std::string FuncSymNames = GetFunctionName(CalleePC);
5535+
std::string FuncSymNames = GetFunctionName(CalleePC);
55365536
if (!FuncSymNames.empty()) {
55375537
OS << "\n";
55385538
OS.PadToColumn(2);
55395539
OS << "Callee:: " << FuncSymNames;
55405540
}
55415541
OS << "\n";
55425542
OS.PadToColumn(2);
5543-
OS << "CalleePC:: 0x" << format("%lx", CalleePC);
5543+
OS << "CalleePC:: 0x" << format("%lx", CalleePC);
55445544
}
55455545
OS << "\n}";
55465546
}
@@ -8386,35 +8386,35 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printCallGraphInfo() {
83868386
return;
83878387
using FunctionCallgraphInfo =
83888388
::FunctionCallgraphInfoImpl<typename ELFT::uint>;
8389-
8390-
auto GetFunctionName = [&](typename ELFT::uint EntryPc){
8389+
8390+
auto GetFunctionName = [&](typename ELFT::uint EntryPc) {
83918391
SmallVector<uint32_t> FuncSymIndexes =
83928392
this->getSymbolIndexesForFunctionAddress(EntryPc, std::nullopt);
83938393
if (FuncSymIndexes.empty())
83948394
return std::string("");
8395-
8395+
83968396
SmallVector<std::string> FuncSymNames;
83978397
for (uint32_t Index : FuncSymIndexes)
83988398
FuncSymNames.push_back(this->getStaticSymbolName(Index));
8399-
return join(FuncSymNames, ", ");
8399+
return join(FuncSymNames, ", ");
84008400
};
84018401

84028402
DictScope D(this->W, "callgraph_info");
84038403

84048404
for (const auto &El : this->FuncCGInfos) {
84058405
typename ELFT::uint FuncEntryPc = El.first;
8406-
FunctionCallgraphInfo CGInfo = El.second;
8406+
FunctionCallgraphInfo CGInfo = El.second;
84078407
std::string FuncPCStr;
84088408
raw_string_ostream OS(FuncPCStr);
84098409
OS << format("0x%lx", FuncEntryPc);
84108410
DictScope FuncScope(this->W, OS.str());
8411-
std::string FuncSymName = GetFunctionName(FuncEntryPc);
8411+
std::string FuncSymName = GetFunctionName(FuncEntryPc);
84128412
if (!FuncSymName.empty())
8413-
this->W.printString("Name", FuncSymName);
8414-
8413+
this->W.printString("Name", FuncSymName);
8414+
84158415
this->W.printNumber("FormatVersionNumber", CGInfo.FormatVersionNumber);
84168416
this->W.printString("KindStr", GetFuntionKindString(CGInfo.Kind));
8417-
this->W.printNumber("Kind", (uint64_t)CGInfo.Kind);
8417+
this->W.printNumber("Kind", (uint64_t)CGInfo.Kind);
84188418
if (CGInfo.Kind == FunctionKind::INDIRECT_TARGET_KNOWN_TID)
84198419
this->W.printHex("TypeId", CGInfo.FunctionTypeId);
84208420
this->W.printNumber("NumIndirectCallSites",
@@ -8434,7 +8434,7 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printCallGraphInfo() {
84348434
this->W.printHex("calleePC", CalleePC);
84358435
std::string CalleeSymName = GetFunctionName(CalleePC);
84368436
if (!CalleeSymName.empty())
8437-
this->W.printString("Name", CalleeSymName);
8437+
this->W.printString("Name", CalleeSymName);
84388438
}
84398439
}
84408440
}

0 commit comments

Comments
 (0)