mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user