mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add an IsBare attribute to SILFunction for functions that do not have an
AST. Swift SVN r11236
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user