Add an IsBare attribute to SILFunction for functions that do not have an

AST.

Swift SVN r11236
This commit is contained in:
Adrian Prantl
2013-12-13 04:48:37 +00:00
parent 74784f89c4
commit c610ac94ef
13 changed files with 36 additions and 14 deletions

View File

@@ -53,6 +53,7 @@ SILModule::~SILModule() {
SILFunction *SILModule::getOrCreateSharedFunction(SILLocation loc,
StringRef name,
CanSILFunctionType type,
IsBare_t isBareSILFunction,
IsTransparent_t isTransparent) {
// TODO: use a 'shared' linkage.
auto linkage = SILLinkage::Internal;
@@ -63,7 +64,7 @@ SILFunction *SILModule::getOrCreateSharedFunction(SILLocation loc,
}
return new (*this) SILFunction(*this, linkage, name, type,
loc, isTransparent);
loc, isBareSILFunction, isTransparent);
}
ArrayRef<SILType> ValueBase::getTypes() const {