mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Remove redundant utility method and rename another one
This commit is contained in:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user