git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126011
91177308-0d34-0410-b5e6-
96231b3b80d8
return Root && RHS.Root ? Root->isNotEqual(*RHS.Root) : Root != RHS.Root;
}
- TreeTy* getRoot() const {
+ TreeTy *getRoot() const {
if (Root) { Root->retain(); }
return Root;
}
+ TreeTy *getRootWithoutRetain() const {
+ return Root;
+ }
+
+ void manualRetain() {
+ if (Root) Root->retain();
+ }
+
+ void manualRelease() {
+ if (Root) Root->release();
+ }
+
bool isEmpty() const { return !Root; }
//===--------------------------------------------------===//