Skip to content
Snippets Groups Projects
Commit e94f74f6 authored by Bill Wendling's avatar Bill Wendling
Browse files

Use a StringRef. Saves 0.00000000000001s on execution time.

llvm-svn: 194301
parent 1662b832
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ static bool fillRanges(SourceManager &Sources, FileID ID,
}
// Returns true on error.
static bool format(std::string FileName) {
static bool format(StringRef FileName) {
FileManager Files((FileSystemOptions()));
DiagnosticsEngine Diagnostics(
IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment