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:
Dmitri Hrybenko
2014-07-17 15:35:29 +00:00
parent 31ced1260d
commit 70e0577767
2 changed files with 5 additions and 5 deletions

View File

@@ -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));