Skip to content

Commit caa0cbc

Browse files
aaupovaaryanshukla
authored andcommitted
[MC][NFC] Fix typo in MCPseudoProbeFrameLocation (llvm#98090)
1 parent 72f2e1a commit caa0cbc

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

llvm/include/llvm/MC/MCPseudoProbe.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class MCPseudoProbe : public MCPseudoProbeBase {
174174
};
175175

176176
// Represents a callsite with caller function name and probe id
177-
using MCPseduoProbeFrameLocation = std::pair<StringRef, uint32_t>;
177+
using MCPseudoProbeFrameLocation = std::pair<StringRef, uint32_t>;
178178

179179
class MCDecodedPseudoProbe : public MCPseudoProbeBase {
180180
uint64_t Address;
@@ -199,7 +199,7 @@ class MCDecodedPseudoProbe : public MCPseudoProbeBase {
199199
// each tree node has its InlineSite which is taken as the context.
200200
// \p ContextStack is populated in root to leaf order
201201
void
202-
getInlineContext(SmallVectorImpl<MCPseduoProbeFrameLocation> &ContextStack,
202+
getInlineContext(SmallVectorImpl<MCPseudoProbeFrameLocation> &ContextStack,
203203
const GUIDProbeFunctionMap &GUID2FuncMAP) const;
204204

205205
// Helper function to get the string from context stack
@@ -404,7 +404,7 @@ class MCPseudoProbeDecoder {
404404
// IncludeLeaf = false, Output: [main:1, foo:2]
405405
void getInlineContextForProbe(
406406
const MCDecodedPseudoProbe *Probe,
407-
SmallVectorImpl<MCPseduoProbeFrameLocation> &InlineContextStack,
407+
SmallVectorImpl<MCPseudoProbeFrameLocation> &InlineContextStack,
408408
bool IncludeLeaf) const;
409409

410410
const AddressProbesMap &getAddress2ProbesMap() const {

llvm/lib/MC/MCPseudoProbe.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ void MCPseudoProbeFuncDesc::print(raw_ostream &OS) {
280280
}
281281

282282
void MCDecodedPseudoProbe::getInlineContext(
283-
SmallVectorImpl<MCPseduoProbeFrameLocation> &ContextStack,
283+
SmallVectorImpl<MCPseudoProbeFrameLocation> &ContextStack,
284284
const GUIDProbeFunctionMap &GUID2FuncMAP) const {
285285
uint32_t Begin = ContextStack.size();
286286
MCDecodedPseudoProbeInlineTree *Cur = InlineTree;
@@ -289,7 +289,7 @@ void MCDecodedPseudoProbe::getInlineContext(
289289
while (Cur->hasInlineSite()) {
290290
StringRef FuncName = getProbeFNameForGUID(GUID2FuncMAP, Cur->Parent->Guid);
291291
ContextStack.emplace_back(
292-
MCPseduoProbeFrameLocation(FuncName, std::get<1>(Cur->ISite)));
292+
MCPseudoProbeFrameLocation(FuncName, std::get<1>(Cur->ISite)));
293293
Cur = static_cast<MCDecodedPseudoProbeInlineTree *>(Cur->Parent);
294294
}
295295
// Make the ContextStack in caller-callee order
@@ -299,7 +299,7 @@ void MCDecodedPseudoProbe::getInlineContext(
299299
std::string MCDecodedPseudoProbe::getInlineContextStr(
300300
const GUIDProbeFunctionMap &GUID2FuncMAP) const {
301301
std::ostringstream OContextStr;
302-
SmallVector<MCPseduoProbeFrameLocation, 16> ContextStack;
302+
SmallVector<MCPseudoProbeFrameLocation, 16> ContextStack;
303303
getInlineContext(ContextStack, GUID2FuncMAP);
304304
for (auto &Cxt : ContextStack) {
305305
if (OContextStr.str().size())
@@ -616,7 +616,7 @@ MCPseudoProbeDecoder::getFuncDescForGUID(uint64_t GUID) const {
616616

617617
void MCPseudoProbeDecoder::getInlineContextForProbe(
618618
const MCDecodedPseudoProbe *Probe,
619-
SmallVectorImpl<MCPseduoProbeFrameLocation> &InlineContextStack,
619+
SmallVectorImpl<MCPseudoProbeFrameLocation> &InlineContextStack,
620620
bool IncludeLeaf) const {
621621
Probe->getInlineContext(InlineContextStack, GUID2FuncDescMap);
622622
if (!IncludeLeaf)
@@ -625,7 +625,7 @@ void MCPseudoProbeDecoder::getInlineContextForProbe(
625625
// hence we need to retrieve and prepend leaf if requested.
626626
const auto *FuncDesc = getFuncDescForGUID(Probe->getGuid());
627627
InlineContextStack.emplace_back(
628-
MCPseduoProbeFrameLocation(FuncDesc->FuncName, Probe->getIndex()));
628+
MCPseudoProbeFrameLocation(FuncDesc->FuncName, Probe->getIndex()));
629629
}
630630

631631
const MCPseudoProbeFuncDesc *MCPseudoProbeDecoder::getInlinerDescForProbe(

llvm/tools/llvm-profgen/ProfiledBinary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ class ProfiledBinary {
576576
void getInlineContextForProbe(const MCDecodedPseudoProbe *Probe,
577577
SampleContextFrameVector &InlineContextStack,
578578
bool IncludeLeaf = false) const {
579-
SmallVector<MCPseduoProbeFrameLocation, 16> ProbeInlineContext;
579+
SmallVector<MCPseudoProbeFrameLocation, 16> ProbeInlineContext;
580580
ProbeDecoder.getInlineContextForProbe(Probe, ProbeInlineContext,
581581
IncludeLeaf);
582582
for (uint32_t I = 0; I < ProbeInlineContext.size(); I++) {

0 commit comments

Comments
 (0)