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 73ed03c commit cad0761Copy full SHA for cad0761
include/swift/SIL/Test.h
@@ -173,6 +173,8 @@ class FunctionTest final {
173
template <typename Analysis, typename Transform = SILFunctionTransform>
174
Analysis *getAnalysis();
175
176
+ SILFunctionTransform *getPass();
177
+
178
SwiftPassInvocation *getSwiftPassInvocation();
179
180
//===----------------------------------------------------------------------===//
@@ -302,6 +304,8 @@ template <typename Analysis, typename Transform>
302
304
Analysis *FunctionTest::getAnalysis() {
303
305
return impl::getAnalysisFromTransform<Analysis, Transform>(pass);
306
}
307
308
+inline SILFunctionTransform *FunctionTest::getPass() { return pass; }
309
} // namespace test
310
} // namespace swift
311
0 commit comments