Author: serge-sans-paille
Date: 2022-12-09T11:25:26+01:00
New Revision: 12a877a32c73e5364ace453dad0ab7cb63a6506c

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

LOG: Adapt lldb to use StringRef for option storage

As a consequence to 138942c833b3baa12d19216797efca6d4dd010d2
This fixes lldb build https://lab.llvm.org/buildbot/#/builders/83/builds/26991

Added: 
    

Modified: 
    lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp 
b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
index 9d89148616be1..fde098840be4b 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
@@ -1055,7 +1055,7 @@ void 
PlatformDarwin::AddClangModuleCompilationOptionsForSDKType(
   // Only add the version-min options if we got a version from somewhere
   if (!version.empty() && sdk_type != XcodeSDK::Type::Linux) {
 #define OPTION(PREFIX, NAME, VAR, ...)                                         
\
-  const char *opt_##VAR = NAME;                                                
\
+  llvm::StringRef opt_##VAR = NAME;                                            
\
   (void)opt_##VAR;
 #include "clang/Driver/Options.inc"
 #undef OPTION


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

Reply via email to