[sil] Eliminate redundant method SILFunction::hasUnqualifiedOwnership().

We can just !SILFunction::hasQualifiedOwnership(). Plus as Andy pointed out,
even ignoring the functional aspects, having APIs with names this close can
create confusion.
This commit is contained in:
Michael Gottesman
2017-12-02 16:40:17 -08:00
parent f2783bb3a1
commit 5263e9e74e
14 changed files with 48 additions and 52 deletions

View File

@@ -318,10 +318,6 @@ public:
/// Returns true if this function has qualified ownership instructions in it.
bool hasQualifiedOwnership() const { return HasQualifiedOwnership; }
/// Returns true if this function has unqualified ownership instructions in
/// it.
bool hasUnqualifiedOwnership() const { return !HasQualifiedOwnership; }
/// Sets the HasQualifiedOwnership flag to false. This signals to SIL that no
/// ownership instructions should be in this function any more.
void setUnqualifiedOwnership() {