Merge pull request #14198 from davidungar/PR-18-3c-exp2

[Batch mode] Move frontend main output files to FrontendInputsAndOutputs. (1)
This commit is contained in:
David Ungar
2018-02-01 16:42:10 -08:00
committed by GitHub
39 changed files with 1156 additions and 661 deletions

View File

@@ -146,7 +146,7 @@ SourceFile *getSourceFile(CompilerInstance &Instance,
CompilerInvocation Invocation;
Invocation.getLangOptions().KeepSyntaxInfoInSourceFile = true;
Invocation.getLangOptions().VerifySyntaxTree = true;
Invocation.getFrontendOptions().Inputs.addInputFile(InputFileName);
Invocation.getFrontendOptions().InputsAndOutputs.addInputFile(InputFileName);
Invocation.setMainExecutablePath(
llvm::sys::fs::getMainExecutable(MainExecutablePath,
reinterpret_cast<void *>(&anchorForGetMainExecutable)));