Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
fixup! [BOLT] Refactor the Pseudo Probe decoder
Browse files Browse the repository at this point in the history
Summary: add getter of (dummy) Root node of inline tree in decoded pseudo probe decoder
  • Loading branch information
luoj1 authored and rafaelauler committed Jul 16, 2021
1 parent 918f9f7 commit 8b7be8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion llvm/include/llvm/MC/MCPseudoProbe.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ class MCPseudoProbeInlineTreeBase {
// Root node has a GUID 0.
bool isRoot() const { return Guid == 0; }
InlinedProbeTreeMap &getChildren() { return Children; }
const InlinedProbeTreeMap &getChildren() const { return Children; }
std::vector<ProbeType> &getProbes() { return Probes; }
void addProbes(ProbeType Probe) { Probes.push_back(Probe); }
// Caller node of the inline site
Expand Down Expand Up @@ -407,8 +408,11 @@ class MCPseudoProbeDecoder {
getInlinerDescForProbe(const MCDecodedPseudoProbe *Probe) const;

std::string getSectionName() const { return SectionName; };
};

const MCDecodedPseudoProbeInlineTree &getDummyInlineRoot() const {
return DummyInlineRoot;
}
};
} // end namespace llvm

#endif // LLVM_MC_MCPSEUDOPROBE_H

0 comments on commit 8b7be8f

Please sign in to comment.