summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/CompilationDatabaseTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2012-10-08 18:31:54 +0000
committerDaniel Jasper <djasper@google.com>2012-10-08 18:31:54 +0000
commitfddb32c3d6775d0a8e6f2d0bbbbddcdb96c4a2c3 (patch)
tree7dc8d436100b39e2ca805a07dadf5206308a67c5 /clang/unittests/Tooling/CompilationDatabaseTest.cpp
parent22b9fd2f2e4e7b5f056d685a9ecb94e037beb646 (diff)
downloadbcm5719-llvm-fddb32c3d6775d0a8e6f2d0bbbbddcdb96c4a2c3.tar.gz
bcm5719-llvm-fddb32c3d6775d0a8e6f2d0bbbbddcdb96c4a2c3.zip
FileNameMatchTrie: Use StringRef instead of Twines where possible.
llvm-svn: 165412
Diffstat (limited to 'clang/unittests/Tooling/CompilationDatabaseTest.cpp')
-rw-r--r--clang/unittests/Tooling/CompilationDatabaseTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/CompilationDatabaseTest.cpp b/clang/unittests/Tooling/CompilationDatabaseTest.cpp
index 5bbbe2aa2e7..6b58abbd325 100644
--- a/clang/unittests/Tooling/CompilationDatabaseTest.cpp
+++ b/clang/unittests/Tooling/CompilationDatabaseTest.cpp
@@ -84,8 +84,8 @@ static CompileCommand findCompileArgsInJsonDatabase(StringRef FileName,
struct FakeComparator : public PathComparator {
virtual ~FakeComparator() {}
- virtual bool equivalent(const Twine &FileA, const Twine &FileB) const {
- return StringRef(FileA.str()).equals_lower(FileB.str());
+ virtual bool equivalent(StringRef FileA, StringRef FileB) const {
+ return FileA.equals_lower(FileB);
}
};
OpenPOWER on IntegriCloud