mirror of
https://github.com/intel/llvm.git
synced 2026-01-30 22:53:05 +08:00
Use StringRef::endswith_lower. No functionality change.
llvm-svn: 193788
This commit is contained in:
@@ -1307,10 +1307,8 @@ static std::string qualifyWindowsLibrary(llvm::StringRef Lib) {
|
||||
// If the argument does not end in .lib, automatically add the suffix. This
|
||||
// matches the behavior of MSVC.
|
||||
std::string ArgStr = Lib;
|
||||
if (Lib.size() <= 4 ||
|
||||
Lib.substr(Lib.size() - 4).compare_lower(".lib") != 0) {
|
||||
if (!Lib.endswith_lower(".lib"))
|
||||
ArgStr += ".lib";
|
||||
}
|
||||
return ArgStr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user