libSyntax: rename KeepTokensInSourceFile to KeepSyntaxInfoInSourceFile.

This commit is contained in:
Xi Ge
2017-11-03 16:56:04 -07:00
parent 4ee32a125e
commit 6af5d3c0bf
12 changed files with 29 additions and 30 deletions

View File

@@ -128,7 +128,7 @@ SourceFile *getSourceFile(CompilerInstance &Instance,
StringRef InputFileName,
const char *MainExecutablePath) {
CompilerInvocation Invocation;
Invocation.getLangOptions().KeepTokensInSourceFile = true;
Invocation.getLangOptions().KeepSyntaxInfoInSourceFile = true;
Invocation.addInputFilename(InputFileName);
Invocation.setMainExecutablePath(
llvm::sys::fs::getMainExecutable(MainExecutablePath,