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:
Joe Groff
2013-05-24 16:33:52 +00:00
parent e3269a3b95
commit 0dc5c66cd2
17 changed files with 141 additions and 166 deletions

View File

@@ -70,7 +70,7 @@ public:
SILModule &getModule() const { return *ModuleAndLinkage.getPointer(); }
SILType getLoweredType() const { return LoweredType; }
SILFunctionTypeInfo *getFunctionTypeInfo() const {
return LoweredType.getFunctionTypeInfo();
return LoweredType.getFunctionTypeInfo(getModule());
}
/// Returns the calling convention used by this entry point.