mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Pass in SILOptions to SILModule.
This should have been done a long time ago since SILOptions are options that should be able to effect everything SIL related. In this case I just want to pass in a flag on the SILModule to enable +0 self. By putting it on the SILModule I can conveniently check it in SILFunctionType without exposing any internal state from SILFunctionType.cpp. Swift SVN r23647
This commit is contained in:
@@ -97,11 +97,12 @@ class SILModule::SerializationCallback : public SerializedSILLoader::Callback {
|
||||
}
|
||||
};
|
||||
|
||||
SILModule::SILModule(Module *SwiftModule, const DeclContext *associatedDC,
|
||||
SILModule::SILModule(Module *SwiftModule, SILOptions &Options,
|
||||
const DeclContext *associatedDC,
|
||||
bool wholeModule)
|
||||
: TheSwiftModule(SwiftModule), AssociatedDeclContext(associatedDC),
|
||||
Stage(SILStage::Raw), Callback(new SILModule::SerializationCallback()),
|
||||
wholeModule(wholeModule), Types(*this) {
|
||||
wholeModule(wholeModule), Options(Options), Types(*this) {
|
||||
TypeListUniquing = new SILTypeListUniquingType();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user