Skip to content

Commit 1c91f98

Browse files
authored
Use StringRef per community change d9ab3e82f30d6 (#397)
1 parent fe597f8 commit 1c91f98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

options_compile.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Copyright (c) Intel Corporation (2009-2017).
2929
#include <map>
3030
#include <sstream>
3131

32-
#define PREFIX(NAME, VALUE) const char *const NAME[] = VALUE;
32+
#define PREFIX(NAME, VALUE) \
33+
const llvm::ArrayRef<llvm::StringLiteral> NAME = VALUE;
3334
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
3435
HELPTEXT, METAVAR, VALUES)
3536
#include "opencl_clang_options.inc"
@@ -47,7 +48,7 @@ static const OptTable::Info ClangOptionsInfoTable[] = {
4748
{ \
4849
PREFIX, NAME, HELPTEXT, METAVAR, OPT_COMPILE_##ID, \
4950
llvm::opt::Option::KIND##Class, PARAM, FLAGS, OPT_COMPILE_##GROUP, \
50-
OPT_COMPILE_##ALIAS, ALIASARGS \
51+
OPT_COMPILE_##ALIAS, ALIASARGS, VALUES \
5152
} \
5253
,
5354
#include "opencl_clang_options.inc"

0 commit comments

Comments
 (0)