From 041b5251415d9c96c9535e6e780770ad066883fe Mon Sep 17 00:00:00 2001 From: modimo Date: Wed, 4 Aug 2021 17:23:22 -0700 Subject: [PATCH] [CSSPGO] Remove used of PseudoProbeAttributes::Reserved D106861 added usage of PseudoProbeAttributes::Reserved as TailCall however this usage hasn't been committed/reviewed. Removing this usage. Testing ninja check-all Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D107514 --- llvm/include/llvm/MC/MCPseudoProbe.h | 4 ---- llvm/lib/MC/MCPseudoProbe.cpp | 3 --- 2 files changed, 7 deletions(-) diff --git a/llvm/include/llvm/MC/MCPseudoProbe.h b/llvm/include/llvm/MC/MCPseudoProbe.h index c1bacef..76cda75 100644 --- a/llvm/include/llvm/MC/MCPseudoProbe.h +++ b/llvm/include/llvm/MC/MCPseudoProbe.h @@ -123,10 +123,6 @@ public: bool isEntry() const { return Index == PseudoProbeFirstId; } - bool isTailCall() const { - return Attributes & static_cast(PseudoProbeAttributes::Reserved); - } - uint64_t getGuid() const { return Guid; } uint64_t getIndex() const { return Index; } diff --git a/llvm/lib/MC/MCPseudoProbe.cpp b/llvm/lib/MC/MCPseudoProbe.cpp index 7afe7e4..1e65cbf 100644 --- a/llvm/lib/MC/MCPseudoProbe.cpp +++ b/llvm/lib/MC/MCPseudoProbe.cpp @@ -275,9 +275,6 @@ void MCDecodedPseudoProbe::print(raw_ostream &OS, } OS << "Index: " << Index << " "; OS << "Type: " << PseudoProbeTypeStr[static_cast(Type)] << " "; - if (isTailCall()) { - OS << "TailCall "; - } std::string InlineContextStr = getInlineContextStr(GUID2FuncMAP, ShowName); if (InlineContextStr.size()) { OS << "Inlined: @ "; -- 2.7.4