Skip to content

Commit 8b99b9f

Browse files
committed
[NFC] Exported printing query function.
Allow other compilation units to refer to isFunctionSelectedForPrinting by declaring it extern. Maybe at some point it might be nice to put this into a header related to printing.
1 parent f807ef9 commit 8b99b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/PassManager/PassManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static llvm::cl::opt<DebugOnlyPassNumberOpt, true,
167167
llvm::cl::location(DebugOnlyPassNumberOptLoc),
168168
llvm::cl::ValueRequired);
169169

170-
static bool isFunctionSelectedForPrinting(SILFunction *F) {
170+
bool isFunctionSelectedForPrinting(SILFunction *F) {
171171
if (!SILPrintFunction.empty() && SILPrintFunction.end() ==
172172
std::find(SILPrintFunction.begin(), SILPrintFunction.end(), F->getName()))
173173
return false;

0 commit comments

Comments
 (0)