mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Demangler: replace LLVM reference counting with std::shared_ptr (which is not
actually necessary here, since all tree nodes could be just allocated from a single pool) Steps towards rdar://16929868 Swift SVN r20090
This commit is contained in:
@@ -1898,7 +1898,7 @@ private:
|
||||
|
||||
/// Determine whether this is a "simple" type, from the type-simple
|
||||
/// production.
|
||||
bool isSimpleType(NodePointer pointer) {
|
||||
bool isSimpleType(Node *pointer) {
|
||||
switch (pointer->getKind()) {
|
||||
case Node::Kind::ArchetypeAndProtocol:
|
||||
case Node::Kind::ArchetypeRef:
|
||||
@@ -2011,7 +2011,7 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
SugarType findSugar(NodePointer pointer) {
|
||||
SugarType findSugar(Node *pointer) {
|
||||
if (pointer->getNumChildren() == 1 &&
|
||||
pointer->getKind() == Node::Kind::Type)
|
||||
return findSugar(pointer->getChild(0));
|
||||
|
||||
Reference in New Issue
Block a user