File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
SwiftCompilerSources/Sources/Optimizer/PassManager
include/swift/SILOptimizer Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,12 @@ struct Options {
36
36
_bridged. enableAddressDependencies ( )
37
37
}
38
38
39
+ var noAllocations : Bool {
40
+ _bridged. noAllocations ( )
41
+ }
42
+
39
43
var enableEmbeddedSwift : Bool {
40
- _bridged . hasFeature ( . Embedded)
44
+ hasFeature ( . Embedded)
41
45
}
42
46
43
47
var enableMergeableTraps : Bool {
Original file line number Diff line number Diff line change @@ -385,6 +385,7 @@ struct BridgedPassContext {
385
385
bool enableSimplificationFor (BridgedInstruction inst) const ;
386
386
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedDeclObj getCurrentModuleContext () const ;
387
387
BRIDGED_INLINE bool enableWMORequiredDiagnostics () const ;
388
+ BRIDGED_INLINE bool noAllocations () const ;
388
389
389
390
// Temporary for AddressableParameters Bootstrapping.
390
391
BRIDGED_INLINE bool enableAddressDependencies () const ;
Original file line number Diff line number Diff line change @@ -591,6 +591,11 @@ bool BridgedPassContext::enableWMORequiredDiagnostics() const {
591
591
return mod->getOptions ().EnableWMORequiredDiagnostics ;
592
592
}
593
593
594
+ bool BridgedPassContext::noAllocations () const {
595
+ swift::SILModule *mod = invocation->getPassManager ()->getModule ();
596
+ return mod->getOptions ().NoAllocations ;
597
+ }
598
+
594
599
bool BridgedPassContext::enableAddressDependencies () const {
595
600
swift::SILModule *mod = invocation->getPassManager ()->getModule ();
596
601
return mod->getOptions ().EnableAddressDependencies ;
You can’t perform that action at this time.
0 commit comments