llvm::StringRef::*lower became insensitive.

See llvm/llvm-project@2e4a2b8430
This commit is contained in:
Vassil Vassilev 2022-02-09 20:54:38 +00:00 committed by jenkins
parent f2520d9a39
commit af078b845e

View File

@ -69,7 +69,7 @@ namespace cling {
/// Example: substFront("@rpath/abc", "@rpath/", "/tmp") -> "/tmp/abc"
static std::string substFront(llvm::StringRef original, llvm::StringRef pattern,
llvm::StringRef replacement) {
if (!original.startswith_lower(pattern))
if (!original.startswith_insensitive(pattern))
return original.str();
llvm::SmallString<512> result(replacement);
result.append(original.drop_front(pattern.size()));
@ -307,7 +307,7 @@ namespace cling {
// Subst all known linker variables ($origin, @rpath, etc.)
#ifdef __APPLE__
// On MacOS @rpath is preplaced by all paths in RPATH one by one.
if (libStem.startswith_lower("@rpath")) {
if (libStem.startswith_insensitive("@rpath")) {
for (auto& P : RPath) {
std::string result = substFront(libStem, "@rpath", P);
if (isSharedLibrary(result))