Use StringRef's case transformation methods.

llvm-svn: 143889
This commit is contained in:
Benjamin Kramer
2011-11-06 20:36:48 +00:00
parent 490aa6fd87
commit 44f91da8cc
2 changed files with 3 additions and 5 deletions

View File

@@ -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();
}