Merge pull request #12920 from davidungar/Move-input-conversion

Move input conversion
This commit is contained in:
David Ungar
2017-11-27 17:13:48 -08:00
committed by GitHub
13 changed files with 283 additions and 130 deletions

View File

@@ -1917,7 +1917,7 @@ static int doPrintSwiftFileInterface(const CompilerInvocation &InitInvok,
bool AnnotatePrint) {
CompilerInvocation Invocation(InitInvok);
Invocation.addInputFilename(SourceFilename);
Invocation.getFrontendOptions().Inputs.clearPrimaryInput();
Invocation.getFrontendOptions().Inputs.setPrimaryInputToFirstFile();
Invocation.getLangOptions().AttachCommentsToDecls = true;
CompilerInstance CI;
// Display diagnostics to stderr.
@@ -1948,7 +1948,7 @@ static int doPrintDecls(const CompilerInvocation &InitInvok,
bool AnnotatePrint) {
CompilerInvocation Invocation(InitInvok);
Invocation.addInputFilename(SourceFilename);
Invocation.getFrontendOptions().Inputs.clearPrimaryInput();
Invocation.getFrontendOptions().Inputs.setPrimaryInputToFirstFile();
Invocation.getLangOptions().AttachCommentsToDecls = true;
CompilerInstance CI;
// Display diagnostics to stderr.