aboutsummaryrefslogtreecommitdiff
path: root/clang/tools
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-11-09 00:23:58 +0000
committerBill Wendling <isanbard@gmail.com>2013-11-09 00:23:58 +0000
commite94f74f69fc2f9708b6a8524313c67f81e8a3223 (patch)
tree80b025582596ab38a6ebe8f63e3c18c22b963b9b /clang/tools
parent1662b832d9980d9ddf8c7d2aa20bce774550b2a6 (diff)
downloadllvm-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.cpp2
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),