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:
Joe Groff
2014-02-09 22:39:01 +00:00
parent 201e1d9bf9
commit 481fbb7b91
17 changed files with 25 additions and 258 deletions

View File

@@ -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 &param) {
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());