Adapt lldb to use StringRef for option storage

As a consequence to 138942c833
This fixes lldb build https://lab.llvm.org/buildbot/#/builders/83/builds/26991
This commit is contained in:
serge-sans-paille
2022-12-09 11:20:37 +01:00
parent 5bf8e14350
commit 12a877a32c

View File

@@ -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