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 @@ -605,8 +605,6 @@ class ObjCProtoName : public Node {
605
605
const Node *Ty;
606
606
std::string_view Protocol;
607
607
608
- friend class PointerType ;
609
-
610
608
public:
611
609
ObjCProtoName (const Node *Ty_, std::string_view Protocol_)
612
610
: Node(KObjCProtoName), Ty(Ty_), Protocol(Protocol_) {}
@@ -618,6 +616,8 @@ class ObjCProtoName : public Node {
618
616
static_cast <const NameType *>(Ty)->getName () == " objc_object" ;
619
617
}
620
618
619
+ std::string_view getProtocol () const { return Protocol; }
620
+
621
621
void printLeft (OutputBuffer &OB) const override {
622
622
Ty->print (OB);
623
623
OB += " <" ;
@@ -655,7 +655,7 @@ class PointerType final : public Node {
655
655
} else {
656
656
const auto *objcProto = static_cast <const ObjCProtoName *>(Pointee);
657
657
OB += " id<" ;
658
- OB += objcProto->Protocol ;
658
+ OB += objcProto->getProtocol () ;
659
659
OB += " >" ;
660
660
}
661
661
}
Original file line number Diff line number Diff line change @@ -605,8 +605,6 @@ class ObjCProtoName : public Node {
605
605
const Node *Ty;
606
606
std::string_view Protocol;
607
607
608
- friend class PointerType ;
609
-
610
608
public:
611
609
ObjCProtoName (const Node *Ty_, std::string_view Protocol_)
612
610
: Node(KObjCProtoName), Ty(Ty_), Protocol(Protocol_) {}
@@ -618,6 +616,8 @@ class ObjCProtoName : public Node {
618
616
static_cast <const NameType *>(Ty)->getName () == " objc_object" ;
619
617
}
620
618
619
+ std::string_view getProtocol () const { return Protocol; }
620
+
621
621
void printLeft (OutputBuffer &OB) const override {
622
622
Ty->print (OB);
623
623
OB += " <" ;
@@ -655,7 +655,7 @@ class PointerType final : public Node {
655
655
} else {
656
656
const auto *objcProto = static_cast <const ObjCProtoName *>(Pointee);
657
657
OB += " id<" ;
658
- OB += objcProto->Protocol ;
658
+ OB += objcProto->getProtocol () ;
659
659
OB += " >" ;
660
660
}
661
661
}
You can’t perform that action at this time.
0 commit comments