File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ EnableResilience("enable-resilience",
72
72
" interfaces for all public declarations by "
73
73
" default" ));
74
74
75
+ static llvm::cl::opt<bool >
76
+ EnableSILOwnershipOpt (" enable-sil-ownership" ,
77
+ llvm::cl::desc (" Compile the module with sil-ownership initially enabled for all functions" ));
78
+
75
79
static llvm::cl::opt<std::string>
76
80
ResourceDir (" resource-dir" ,
77
81
llvm::cl::desc (" The directory that holds the compiler resource files" ));
@@ -227,7 +231,7 @@ int main(int argc, char **argv) {
227
231
SILOpts.AssertConfig = AssertConfId;
228
232
if (OptimizationGroup != OptGroup::Diagnostics)
229
233
SILOpts.Optimization = SILOptions::SILOptMode::Optimize;
230
-
234
+ SILOpts. EnableSILOwnership = EnableSILOwnershipOpt;
231
235
232
236
// Load the input file.
233
237
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> FileBufOrErr =
You can’t perform that action at this time.
0 commit comments