mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Move SILFunctionTypeInfo into a side table.
Generate and cache SILFunctionTypeInfo from Swift types on the fly, and simplify the SILType representation down to a CanType and isAddress bit. Swift SVN r5298
This commit is contained in:
@@ -117,15 +117,6 @@ void SILType::print(raw_ostream &OS) const {
|
||||
|
||||
// Build up the attributes for a SIL type, if any.
|
||||
llvm::SmallString<64> Attributes;
|
||||
if (is<AnyFunctionType>()) {
|
||||
auto info = getFunctionTypeInfo();
|
||||
|
||||
if (info->hasIndirectReturn()) {
|
||||
if (!Attributes.empty()) Attributes += ", ";
|
||||
Attributes += "sil_sret";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// If we have any attributes, print them out.
|
||||
if (!Attributes.empty())
|
||||
|
||||
Reference in New Issue
Block a user