forked from OSchip/llvm-project
Use a StringRef. Saves 0.00000000000001s on execution time.
llvm-svn: 194301
This commit is contained in:
parent
1662b832d9
commit
e94f74f69f
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue