Hide the constructors of SILFunction/SILGlobalVariable

behind factory methods.

Swift SVN r11967
This commit is contained in:
John McCall
2014-01-07 00:22:15 +00:00
parent 90f3b554ee
commit bb63d2312b
11 changed files with 80 additions and 44 deletions

View File

@@ -121,8 +121,8 @@ SILFunction *SILModule::getOrCreateSharedFunction(SILLocation loc,
return fn;
}
return new (*this) SILFunction(*this, linkage, name, type,
loc, isBareSILFunction, isTransparent);
return SILFunction::create(*this, linkage, name, type,
loc, isBareSILFunction, isTransparent);
}
ArrayRef<SILType> ValueBase::getTypes() const {