forked from OSchip/llvm-project
move a few more symbols to .rodata/.data.rel.ro
llvm-svn: 92012
This commit is contained in:
parent
129819de71
commit
cfca1f0dc1
|
@ -210,7 +210,7 @@ std::string DeclarationName::getAsString() const {
|
|||
}
|
||||
|
||||
case CXXOperatorName: {
|
||||
static const char *OperatorNames[NUM_OVERLOADED_OPERATORS] = {
|
||||
static const char* const OperatorNames[NUM_OVERLOADED_OPERATORS] = {
|
||||
0,
|
||||
#define OVERLOADED_OPERATOR(Name,Spelling,Token,Unary,Binary,MemberOnly) \
|
||||
Spelling,
|
||||
|
|
|
@ -294,7 +294,7 @@ namespace {
|
|||
}
|
||||
|
||||
static Optional<uint64_t> GetCFNumberSize(ASTContext& Ctx, uint64_t i) {
|
||||
static unsigned char FixedSize[] = { 8, 16, 32, 64, 32, 64 };
|
||||
static const unsigned char FixedSize[] = { 8, 16, 32, 64, 32, 64 };
|
||||
|
||||
if (i < kCFNumberCharType)
|
||||
return FixedSize[i-1];
|
||||
|
|
|
@ -628,7 +628,7 @@ const Builtin::Info BuiltinInfo[] = {
|
|||
#include "clang/Basic/BuiltinsX86.def"
|
||||
};
|
||||
|
||||
const char *GCCRegNames[] = {
|
||||
static const char* const GCCRegNames[] = {
|
||||
"ax", "dx", "cx", "bx", "si", "di", "bp", "sp",
|
||||
"st", "st(1)", "st(2)", "st(3)", "st(4)", "st(5)", "st(6)", "st(7)",
|
||||
"argp", "flags", "fspr", "dirflag", "frame",
|
||||
|
|
|
@ -15,7 +15,7 @@ using namespace clang::driver;
|
|||
using namespace clang::driver::options;
|
||||
using namespace clang::driver::cc1options;
|
||||
|
||||
static OptTable::Info CC1InfoTable[] = {
|
||||
static const OptTable::Info CC1InfoTable[] = {
|
||||
#define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \
|
||||
HELPTEXT, METAVAR) \
|
||||
{ NAME, HELPTEXT, METAVAR, Option::KIND##Class, FLAGS, PARAM, \
|
||||
|
|
|
@ -89,7 +89,7 @@ ImplicitConversionRank GetConversionRank(ImplicitConversionKind Kind) {
|
|||
/// GetImplicitConversionName - Return the name of this kind of
|
||||
/// implicit conversion.
|
||||
const char* GetImplicitConversionName(ImplicitConversionKind Kind) {
|
||||
static const char* Name[(int)ICK_Num_Conversion_Kinds] = {
|
||||
static const char* const Name[(int)ICK_Num_Conversion_Kinds] = {
|
||||
"No conversion",
|
||||
"Lvalue-to-rvalue",
|
||||
"Array-to-pointer",
|
||||
|
|
Loading…
Reference in New Issue