File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
llvm/include/llvm/Demangle Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -614,8 +614,6 @@ class ObjCProtoName : public Node {
614614 const Node *Ty;
615615 std::string_view Protocol;
616616
617- friend class PointerType ;
618-
619617public:
620618 ObjCProtoName (const Node *Ty_, std::string_view Protocol_)
621619 : Node(KObjCProtoName), Ty(Ty_), Protocol(Protocol_) {}
@@ -627,6 +625,8 @@ class ObjCProtoName : public Node {
627625 static_cast <const NameType *>(Ty)->getName () == " objc_object" ;
628626 }
629627
628+ std::string_view getProtocol () const { return Protocol; }
629+
630630 void printLeft (OutputBuffer &OB) const override {
631631 Ty->print (OB);
632632 OB += " <" ;
@@ -664,7 +664,7 @@ class PointerType final : public Node {
664664 } else {
665665 const auto *objcProto = static_cast <const ObjCProtoName *>(Pointee);
666666 OB += " id<" ;
667- OB += objcProto->Protocol ;
667+ OB += objcProto->getProtocol () ;
668668 OB += " >" ;
669669 }
670670 }
Original file line number Diff line number Diff line change @@ -614,8 +614,6 @@ class ObjCProtoName : public Node {
614614 const Node *Ty;
615615 std::string_view Protocol;
616616
617- friend class PointerType ;
618-
619617public:
620618 ObjCProtoName (const Node *Ty_, std::string_view Protocol_)
621619 : Node(KObjCProtoName), Ty(Ty_), Protocol(Protocol_) {}
@@ -627,6 +625,8 @@ class ObjCProtoName : public Node {
627625 static_cast <const NameType *>(Ty)->getName () == " objc_object" ;
628626 }
629627
628+ std::string_view getProtocol () const { return Protocol; }
629+
630630 void printLeft (OutputBuffer &OB) const override {
631631 Ty->print (OB);
632632 OB += " <" ;
@@ -664,7 +664,7 @@ class PointerType final : public Node {
664664 } else {
665665 const auto *objcProto = static_cast <const ObjCProtoName *>(Pointee);
666666 OB += " id<" ;
667- OB += objcProto->Protocol ;
667+ OB += objcProto->getProtocol () ;
668668 OB += " >" ;
669669 }
670670 }
You can’t perform that action at this time.
0 commit comments