SIL: Remove redundant utility method and rename another one

This commit is contained in:
Slava Pestov
2018-04-03 16:58:12 -07:00
parent d05577a5e3
commit 28d24f8f38
5 changed files with 7 additions and 24 deletions

View File

@@ -490,14 +490,7 @@ public:
/// Unwraps one level of optional type.
/// Returns the lowered T if the given type is Optional<T>.
/// Otherwise directly returns the given type.
SILType unwrapAnyOptionalType() const;
/// Wraps one level of optional type.
///
/// Returns the lowered Optional<T> if the given type is T.
///
/// \arg F The SILFunction where the SILType is used.
SILType wrapAnyOptionalType(SILFunction &F) const;
SILType unwrapOptionalType() const;
/// Returns true if this is the AnyObject SILType;
bool isAnyObject() const { return getSwiftRValueType()->isAnyObject(); }