mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SE-0112] Rename ErrorProtocol to Error.
This is bullet (5) of the proposed solution in SE-0112, and the last major piece to be implemented.
This commit is contained in:
@@ -162,7 +162,7 @@ public:
|
||||
}
|
||||
|
||||
case MetadataKind::ErrorObject:
|
||||
// ErrorProtocol boxed existential on non-Objective-C runtime target
|
||||
// Error boxed existential on non-Objective-C runtime target
|
||||
return nullptr;
|
||||
|
||||
default:
|
||||
@@ -301,7 +301,7 @@ public:
|
||||
return false;
|
||||
|
||||
// Now we need to skip over the instance metadata pointer and instance's
|
||||
// conformance pointer for Swift.ErrorProtocol.
|
||||
// conformance pointer for Swift.Error.
|
||||
StoredPointer InstanceAddress = InstanceMetadataAddressAddress +
|
||||
2 * sizeof(StoredPointer);
|
||||
|
||||
|
||||
@@ -390,8 +390,8 @@ public:
|
||||
return MangledName == "Ps9AnyObject_";
|
||||
}
|
||||
|
||||
bool isErrorProtocol() const {
|
||||
return MangledName == "Ps13ErrorProtocol_";
|
||||
bool isError() const {
|
||||
return MangledName == "Ps5Error_";
|
||||
}
|
||||
|
||||
const std::string &getMangledName() const {
|
||||
|
||||
Reference in New Issue
Block a user