Use a StringRef. Saves 0.00000000000001s on execution time.

llvm-svn: 194301
This commit is contained in:
Bill Wendling 2013-11-09 00:23:58 +00:00
parent 1662b832d9
commit e94f74f69f
1 changed files with 1 additions and 1 deletions

View File

@ -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),