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 @@ -598,8 +598,6 @@ class ObjCProtoName : public Node {
598
598
const Node *Ty;
599
599
std::string_view Protocol;
600
600
601
- friend class PointerType ;
602
-
603
601
public:
604
602
ObjCProtoName (const Node *Ty_, std::string_view Protocol_)
605
603
: Node(KObjCProtoName), Ty(Ty_), Protocol(Protocol_) {}
@@ -611,6 +609,8 @@ class ObjCProtoName : public Node {
611
609
static_cast <const NameType *>(Ty)->getName () == " objc_object" ;
612
610
}
613
611
612
+ std::string_view getProtocol () const { return Protocol; }
613
+
614
614
void printLeft (OutputBuffer &OB) const override {
615
615
Ty->print (OB);
616
616
OB += " <" ;
@@ -648,7 +648,7 @@ class PointerType final : public Node {
648
648
} else {
649
649
const auto *objcProto = static_cast <const ObjCProtoName *>(Pointee);
650
650
OB += " id<" ;
651
- OB += objcProto->Protocol ;
651
+ OB += objcProto->getProtocol () ;
652
652
OB += " >" ;
653
653
}
654
654
}
Original file line number Diff line number Diff line change @@ -598,8 +598,6 @@ class ObjCProtoName : public Node {
598
598
const Node *Ty;
599
599
std::string_view Protocol;
600
600
601
- friend class PointerType ;
602
-
603
601
public:
604
602
ObjCProtoName (const Node *Ty_, std::string_view Protocol_)
605
603
: Node(KObjCProtoName), Ty(Ty_), Protocol(Protocol_) {}
@@ -611,6 +609,8 @@ class ObjCProtoName : public Node {
611
609
static_cast <const NameType *>(Ty)->getName () == " objc_object" ;
612
610
}
613
611
612
+ std::string_view getProtocol () const { return Protocol; }
613
+
614
614
void printLeft (OutputBuffer &OB) const override {
615
615
Ty->print (OB);
616
616
OB += " <" ;
@@ -648,7 +648,7 @@ class PointerType final : public Node {
648
648
} else {
649
649
const auto *objcProto = static_cast <const ObjCProtoName *>(Pointee);
650
650
OB += " id<" ;
651
- OB += objcProto->Protocol ;
651
+ OB += objcProto->getProtocol () ;
652
652
OB += " >" ;
653
653
}
654
654
}
You can’t perform that action at this time.
0 commit comments