[libSyntax] Rename recordReuseInformation to setRecordReuseInformation

This commit is contained in:
Alex Hoppen
2018-05-21 14:40:34 -07:00
parent a791a3d0dd
commit 2decf8ffaf
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ public:
llvm::Optional<Syntax> lookUp(size_t NewPosition, SyntaxKind Kind);
/// Turn recording of reused ranges on
void recordReuseInformation() { RecordReuseInformation = true; }
void setRecordReuseInformation() { RecordReuseInformation = true; }
/// Return the ranges of the new source file that have been successfully
/// looked up in this cache as a (start, end) pair of byte offsets in the

View File

@@ -553,7 +553,7 @@ int parseFile(const char *MainExecutablePath, const StringRef InputFileName,
}
SyntaxCache = new SyntaxParsingCache(OldSyntaxTree.getValue());
SyntaxCache->recordReuseInformation();
SyntaxCache->setRecordReuseInformation();
if (options::OldSourceFilename.empty()) {
llvm::errs() << "The old syntax file must be provided to translate "