Changeset View
Changeset View
Standalone View
Standalone View
tools/llvm-readobj/StackMapPrinter.h
Show All 18 Lines | |||||
void prettyPrintStackMap(OStreamT &OS, const StackMapParserT &SMP) { | void prettyPrintStackMap(OStreamT &OS, const StackMapParserT &SMP) { | ||||
OS << "LLVM StackMap Version: " << SMP.getVersion() | OS << "LLVM StackMap Version: " << SMP.getVersion() | ||||
<< "\nNum Functions: " << SMP.getNumFunctions(); | << "\nNum Functions: " << SMP.getNumFunctions(); | ||||
// Functions: | // Functions: | ||||
for (const auto &F : SMP.functions()) | for (const auto &F : SMP.functions()) | ||||
OS << "\n Function address: " << F.getFunctionAddress() | OS << "\n Function address: " << F.getFunctionAddress() | ||||
<< ", stack size: " << F.getStackSize(); | << ", stack size: " << F.getStackSize() | ||||
<< ", callsite record count: " << F.getRecordCount(); | |||||
// Constants: | // Constants: | ||||
OS << "\nNum Constants: " << SMP.getNumConstants(); | OS << "\nNum Constants: " << SMP.getNumConstants(); | ||||
unsigned ConstantIndex = 0; | unsigned ConstantIndex = 0; | ||||
for (const auto &C : SMP.constants()) | for (const auto &C : SMP.constants()) | ||||
OS << "\n #" << ++ConstantIndex << ": " << C.getValue(); | OS << "\n #" << ++ConstantIndex << ": " << C.getValue(); | ||||
// Records: | // Records: | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |