mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Drop the non-interface types from SILFunctionType.
There are some straggling references to the context generic param list, but nothing uses the non-interface param or result types anymore! Swift SVN r13725
This commit is contained in:
@@ -164,9 +164,6 @@ public:
|
||||
|
||||
/// Returns the Swift return type of a function type.
|
||||
/// The SILType must refer to a function type.
|
||||
SILType getFunctionResultType() const SIL_FUNCTION_TYPE_DEPRECATED {
|
||||
return castTo<SILFunctionType>()->getSemanticResultSILType();
|
||||
}
|
||||
SILType getFunctionInterfaceResultType() const {
|
||||
return castTo<SILFunctionType>()->getSemanticInterfaceResultSILType();
|
||||
}
|
||||
@@ -373,10 +370,6 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, SILType T) {
|
||||
return OS;
|
||||
}
|
||||
|
||||
inline SILType SILFunctionType::getSILParameter(unsigned i) const {
|
||||
return getParameters()[i].getSILType();
|
||||
}
|
||||
|
||||
inline SILType SILFunctionType::getSILInterfaceParameter(unsigned i) const {
|
||||
return getInterfaceParameters()[i].getSILType();
|
||||
}
|
||||
@@ -394,10 +387,6 @@ SILFunctionType::getParameterSILType(const SILParameterInfo ¶m) {
|
||||
return param.getSILType();
|
||||
}
|
||||
|
||||
inline SILType SILFunctionType::getSILResult() const {
|
||||
return getResult().getSILType();
|
||||
}
|
||||
|
||||
inline SILType SILFunctionType::getSILInterfaceResult() const {
|
||||
return getInterfaceResult().getSILType();
|
||||
}
|
||||
@@ -406,11 +395,6 @@ inline SILType SILResultInfo::getSILType() const {
|
||||
return SILType::getPrimitiveObjectType(getType());
|
||||
}
|
||||
|
||||
inline SILType SILFunctionType::getSemanticResultSILType() const {
|
||||
return (hasIndirectResult() ? getIndirectResult().getSILType()
|
||||
: getResult().getSILType());
|
||||
}
|
||||
|
||||
inline SILType SILFunctionType::getSemanticInterfaceResultSILType() const {
|
||||
return (hasIndirectResult() ? getIndirectInterfaceResult().getSILType()
|
||||
: getInterfaceResult().getSILType());
|
||||
|
||||
Reference in New Issue
Block a user