diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-11-09 00:23:58 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-11-09 00:23:58 +0000 |
commit | e94f74f69fc2f9708b6a8524313c67f81e8a3223 (patch) | |
tree | 80b025582596ab38a6ebe8f63e3c18c22b963b9b /clang/tools | |
parent | 1662b832d9980d9ddf8c7d2aa20bce774550b2a6 (diff) | |
download | llvm-e94f74f69fc2f9708b6a8524313c67f81e8a3223.zip llvm-e94f74f69fc2f9708b6a8524313c67f81e8a3223.tar.gz llvm-e94f74f69fc2f9708b6a8524313c67f81e8a3223.tar.bz2 |
Use a StringRef. Saves 0.00000000000001s on execution time.
llvm-svn: 194301
Diffstat (limited to 'clang/tools')
-rw-r--r-- | clang/tools/clang-format/ClangFormat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/ClangFormat.cpp b/clang/tools/clang-format/ClangFormat.cpp index 85c47ab..768165b 100644 --- a/clang/tools/clang-format/ClangFormat.cpp +++ b/clang/tools/clang-format/ClangFormat.cpp @@ -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), |