mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Review fixes:
Rename isThereAPrimaryInputWithAFilenameAt to isInputPrimary. Remove spurious delayed_function_body_parsing. Simply return type of getOutputFilenamesFromCommandLineOrFilelist.
This commit is contained in:
@@ -741,8 +741,7 @@ bool CompilerInstance::setUpForFileAt(unsigned i) {
|
||||
if (SILMode || (MainMode && filename(File) == "main.swift"))
|
||||
MainBufferID = ExistingBufferID.getValue();
|
||||
|
||||
if (Invocation.getFrontendOptions()
|
||||
.Inputs.isThereAPrimaryInputWithAFilenameAt(i))
|
||||
if (Invocation.getFrontendOptions().Inputs.isInputPrimary(i))
|
||||
PrimaryBufferID = ExistingBufferID.getValue();
|
||||
|
||||
return false; // replaced by a memory buffer.
|
||||
@@ -784,8 +783,7 @@ bool CompilerInstance::setUpForFileAt(unsigned i) {
|
||||
if (SILMode || (MainMode && filename(File) == "main.swift"))
|
||||
MainBufferID = BufferID;
|
||||
|
||||
if (Invocation.getFrontendOptions()
|
||||
.Inputs.isThereAPrimaryInputWithAFilenameAt(i))
|
||||
if (Invocation.getFrontendOptions().Inputs.isInputPrimary(i))
|
||||
PrimaryBufferID = BufferID;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user