mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
NFC: First step (refactoring) towards speeding up compilation by having multiple primary files: Creates new class, FrontendInputs, to encapsulate InputFilenames, InputBuffers, and PrimaryInput, which were formerly in FrontendOptions. Add new instance variable, Inputs, to FrontendOptions in order to hold FrontendInputs.
Encapsulate uses of the variables in FrontendInputs with intention-describing functions. Move some code that sets these variables into FrontendInputs and FrontendOptions classes. Create new FrontendInputs class to encapsulate InputFilenames, InputBuffers and PrimaryInput, which were formerly in Frontend. Includes one change in SwiftEditor.cpp to resolve a merge conflict.
This commit is contained in:
@@ -279,7 +279,7 @@ void SwiftLangSupport::indexSource(StringRef InputFile,
|
||||
return;
|
||||
}
|
||||
|
||||
if (Invocation.getInputFilenames().empty()) {
|
||||
if (!Invocation.getFrontendOptions().Inputs.hasInputFilenames()) {
|
||||
IdxConsumer.failed("no input filenames specified");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user