We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa07ba commit 27643deCopy full SHA for 27643de
lib/Driver/ToolChains.cpp
@@ -713,6 +713,9 @@ const char *ToolChain::JobContext::computeFrontendModeForCompile() const {
713
case file_types::TY_SIB:
714
return "-emit-sib";
715
case file_types::TY_LLVM_IR:
716
+ if (Args.getLastArg(options::OPT_emit_irgen)) {
717
+ return "-emit-irgen";
718
+ }
719
return "-emit-ir";
720
case file_types::TY_LLVM_BC:
721
return "-emit-bc";
test/Driver/emit-irgen.swift
@@ -0,0 +1,3 @@
1
+// RUN: %swiftc_driver -### -emit-irgen %s -o - | %FileCheck %s
2
+
3
+// CHECK: -emit-irgen
0 commit comments