Author: David Spickett
Date: 2024-05-02T10:12:36+01:00
New Revision: d00ed836e77759414afd40c02eeca5651657438f

URL: 
https://github.com/llvm/llvm-project/commit/d00ed836e77759414afd40c02eeca5651657438f
DIFF: 
https://github.com/llvm/llvm-project/commit/d00ed836e77759414afd40c02eeca5651657438f.diff

LOG: [lldb] Fix build on FreeBSD

Missing llvm:: namespace for StringRef.

Added: 
    

Modified: 
    lldb/source/Plugins/SymbolLocator/Default/SymbolLocatorDefault.cpp

Removed: 
    


################################################################################
diff  --git 
a/lldb/source/Plugins/SymbolLocator/Default/SymbolLocatorDefault.cpp 
b/lldb/source/Plugins/SymbolLocator/Default/SymbolLocatorDefault.cpp
index edb1d59cf42f88..919f26ba70123d 100644
--- a/lldb/source/Plugins/SymbolLocator/Default/SymbolLocatorDefault.cpp
+++ b/lldb/source/Plugins/SymbolLocator/Default/SymbolLocatorDefault.cpp
@@ -157,7 +157,7 @@ std::optional<FileSpec> 
SymbolLocatorDefault::LocateExecutableSymbolFile(
       mib[1] = USER_LOCALBASE;
       if (::sysctl(mib, 2, buf, &len, NULL, 0) == 0) {
         FileSpec file_spec("/lib/debug");
-        file_spec.PrependPathComponent(StringRef(buf));
+        file_spec.PrependPathComponent(llvm::StringRef(buf));
         FileSystem::Instance().Resolve(file_spec);
         debug_file_search_paths.AppendIfUnique(file_spec);
       }


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to