diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-11-06 20:36:48 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-11-06 20:36:48 +0000 |
commit | 90c7892b699c5405a81bcc339432ba2f4b50e0d6 (patch) | |
tree | 9325b4501c72db3075678513eccbfaf84384ea89 /lib/Basic | |
parent | 280b4ada965f89607684446e826d830f0b8a7864 (diff) |
Use StringRef's case transformation methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic')
-rw-r--r-- | lib/Basic/FileManager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Basic/FileManager.cpp b/lib/Basic/FileManager.cpp index c1f715ed05..69e65bc38a 100644 --- a/lib/Basic/FileManager.cpp +++ b/lib/Basic/FileManager.cpp @@ -20,7 +20,6 @@ #include "clang/Basic/FileManager.h" #include "clang/Basic/FileSystemStatCache.h" #include "llvm/ADT/SmallString.h" -#include "llvm/ADT/StringExtras.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/raw_ostream.h" @@ -106,8 +105,8 @@ public: FileEntry &getFile(const char *Name, const struct stat & /*StatBuf*/) { std::string FullPath(GetFullPath(Name)); - // LowercaseString because Windows filesystem is case insensitive. - FullPath = llvm::LowercaseString(FullPath); + // Lowercase string because Windows filesystem is case insensitive. + FullPath = StringRef(FullPath).lower(); return UniqueFiles.GetOrCreateValue(FullPath).getValue(); } |