[Driver] Pass -emit-irgen thru to frontend.

Add a new filetype for this mode option: "Raw LLVM IR". When the mode
option is emit-irgen, the new filetype will be the output kind;
conversely when determining the mode option to use, if the output kind
is the new filetype, the mode option will be emit-irgen.
This commit is contained in:
Nate Chandler
2024-10-01 12:38:20 -07:00
parent 0fa07ba3fe
commit 9718aa5b29
7 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
// RUN: %swiftc_driver -### -emit-irgen %s -o - | %FileCheck %s
// CHECK: -emit-irgen