summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-07-31 23:53:58 +0000
committerRui Ueyama <ruiu@google.com>2013-07-31 23:53:58 +0000
commit527abc9b09ce2130c5788b0939e8d66f0b5dbae5 (patch)
treefe87c2a08c5e35ee4a3ed0fc3cf5e1d15964f092
parent28c96319c8ab397c2e7d1a47b852bf2afae4f04b (diff)
downloadbcm5719-llvm-527abc9b09ce2130c5788b0939e8d66f0b5dbae5.tar.gz
bcm5719-llvm-527abc9b09ce2130c5788b0939e8d66f0b5dbae5.zip
Use StringRef::equals_lower(). No functionality change.
llvm-svn: 187548
-rw-r--r--lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp b/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp
index b1f599c63fa..8d11a202434 100644
--- a/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp
@@ -90,10 +90,10 @@ void PECOFFTargetInfo::addImplicitFiles(InputFiles &files) const {
/// Append the given file to the input file list. The file must be an object
/// file or an import library file.
void PECOFFTargetInfo::appendInputFileOrLibrary(std::string path) {
- std::string ext = llvm::sys::path::extension(path).lower();
+ StringRef ext = llvm::sys::path::extension(path);
// This is an import library file. Look for the library file in the search
// paths, unless the path contains a directory name.
- if (ext == ".lib") {
+ if (ext.equals_lower(".lib")) {
if (containDirectoryName(path)) {
appendInputFile(path);
return;
OpenPOWER on IntegriCloud