mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #36677 from varungandhi-apple/vg-emit-irgen
[Frontend] Add -emit-irgen option to driver and frontend.
This commit is contained in:
@@ -179,8 +179,10 @@ setIRGenOutputOptsFromFrontendOptions(IRGenOptions &IRGenOpts,
|
||||
// Set the OutputKind for the given Action.
|
||||
IRGenOpts.OutputKind = [](FrontendOptions::ActionType Action) {
|
||||
switch (Action) {
|
||||
case FrontendOptions::ActionType::EmitIRGen:
|
||||
return IRGenOutputKind::LLVMAssemblyBeforeOptimization;
|
||||
case FrontendOptions::ActionType::EmitIR:
|
||||
return IRGenOutputKind::LLVMAssembly;
|
||||
return IRGenOutputKind::LLVMAssemblyAfterOptimization;
|
||||
case FrontendOptions::ActionType::EmitBC:
|
||||
return IRGenOutputKind::LLVMBitcode;
|
||||
case FrontendOptions::ActionType::EmitAssembly:
|
||||
|
||||
Reference in New Issue
Block a user