Review fixes:

Rename isThereAPrimaryInputWithAFilenameAt to isInputPrimary.
Remove spurious delayed_function_body_parsing.
Simply return type of getOutputFilenamesFromCommandLineOrFilelist.
This commit is contained in:
David Ungar
2017-11-28 13:28:10 -08:00
parent b4681b154d
commit d16ae98e2a
4 changed files with 7 additions and 13 deletions

View File

@@ -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;