File tree 2 files changed +6
-6
lines changed
llvm/include/llvm/Demangle
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 {
614
614
const Node *Ty;
615
615
std::string_view Protocol;
616
616
617
- friend class PointerType ;
618
-
619
617
public:
620
618
ObjCProtoName (const Node *Ty_, std::string_view Protocol_)
621
619
: Node(KObjCProtoName), Ty(Ty_), Protocol(Protocol_) {}
@@ -627,6 +625,8 @@ class ObjCProtoName : public Node {
627
625
static_cast <const NameType *>(Ty)->getName () == " objc_object" ;
628
626
}
629
627
628
+ std::string_view getProtocol () const { return Protocol; }
629
+
630
630
void printLeft (OutputBuffer &OB) const override {
631
631
Ty->print (OB);
632
632
OB += " <" ;
@@ -664,7 +664,7 @@ class PointerType final : public Node {
664
664
} else {
665
665
const auto *objcProto = static_cast <const ObjCProtoName *>(Pointee);
666
666
OB += " id<" ;
667
- OB += objcProto->Protocol ;
667
+ OB += objcProto->getProtocol () ;
668
668
OB += " >" ;
669
669
}
670
670
}
Original file line number Diff line number Diff line change @@ -614,8 +614,6 @@ class ObjCProtoName : public Node {
614
614
const Node *Ty;
615
615
std::string_view Protocol;
616
616
617
- friend class PointerType ;
618
-
619
617
public:
620
618
ObjCProtoName (const Node *Ty_, std::string_view Protocol_)
621
619
: Node(KObjCProtoName), Ty(Ty_), Protocol(Protocol_) {}
@@ -627,6 +625,8 @@ class ObjCProtoName : public Node {
627
625
static_cast <const NameType *>(Ty)->getName () == " objc_object" ;
628
626
}
629
627
628
+ std::string_view getProtocol () const { return Protocol; }
629
+
630
630
void printLeft (OutputBuffer &OB) const override {
631
631
Ty->print (OB);
632
632
OB += " <" ;
@@ -664,7 +664,7 @@ class PointerType final : public Node {
664
664
} else {
665
665
const auto *objcProto = static_cast <const ObjCProtoName *>(Pointee);
666
666
OB += " id<" ;
667
- OB += objcProto->Protocol ;
667
+ OB += objcProto->getProtocol () ;
668
668
OB += " >" ;
669
669
}
670
670
}
You can’t perform that action at this time.
0 commit comments