File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ class FrontendOptions {
296
296
static bool doesActionProduceOutput (ActionType);
297
297
static bool doesActionProduceTextualOutput (ActionType);
298
298
static bool needsProperModuleName (ActionType);
299
- static const char * suffixForPrincipalOutputFileForAction (ActionType);
299
+ static StringRef suffixForPrincipalOutputFileForAction (ActionType);
300
300
};
301
301
302
302
}
Original file line number Diff line number Diff line change @@ -127,11 +127,11 @@ void FrontendOptions::forAllOutputPaths(
127
127
}
128
128
}
129
129
130
- const char *
130
+ StringRef
131
131
FrontendOptions::suffixForPrincipalOutputFileForAction (ActionType action) {
132
132
switch (action) {
133
133
case ActionType::NoneAction:
134
- return nullptr ;
134
+ return StringRef () ;
135
135
136
136
case ActionType::Parse:
137
137
case ActionType::Typecheck:
@@ -142,7 +142,7 @@ FrontendOptions::suffixForPrincipalOutputFileForAction(ActionType action) {
142
142
case ActionType::PrintAST:
143
143
case ActionType::DumpScopeMaps:
144
144
case ActionType::DumpTypeRefinementContexts:
145
- return nullptr ;
145
+ return StringRef () ;
146
146
147
147
case ActionType::EmitPCH:
148
148
return PCH_EXTENSION;
@@ -162,7 +162,7 @@ FrontendOptions::suffixForPrincipalOutputFileForAction(ActionType action) {
162
162
case ActionType::Immediate:
163
163
case ActionType::REPL:
164
164
// These modes have no frontend-generated output.
165
- return nullptr ;
165
+ return StringRef () ;
166
166
167
167
case ActionType::EmitAssembly:
168
168
return " s" ;
You can’t perform that action at this time.
0 commit comments