mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Mark some static arrays as const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -788,7 +788,7 @@ error_code MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,
|
||||
|
||||
switch (Arch) {
|
||||
case Triple::x86: {
|
||||
const char* Table[] = {
|
||||
static const char *const Table[] = {
|
||||
"GENERIC_RELOC_VANILLA",
|
||||
"GENERIC_RELOC_PAIR",
|
||||
"GENERIC_RELOC_SECTDIFF",
|
||||
@@ -803,7 +803,7 @@ error_code MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,
|
||||
break;
|
||||
}
|
||||
case Triple::x86_64: {
|
||||
const char* Table[] = {
|
||||
static const char *const Table[] = {
|
||||
"X86_64_RELOC_UNSIGNED",
|
||||
"X86_64_RELOC_SIGNED",
|
||||
"X86_64_RELOC_BRANCH",
|
||||
@@ -822,7 +822,7 @@ error_code MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,
|
||||
break;
|
||||
}
|
||||
case Triple::arm: {
|
||||
const char* Table[] = {
|
||||
static const char *const Table[] = {
|
||||
"ARM_RELOC_VANILLA",
|
||||
"ARM_RELOC_PAIR",
|
||||
"ARM_RELOC_SECTDIFF",
|
||||
@@ -841,7 +841,7 @@ error_code MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,
|
||||
break;
|
||||
}
|
||||
case Triple::ppc: {
|
||||
const char* Table[] = {
|
||||
static const char *const Table[] = {
|
||||
"PPC_RELOC_VANILLA",
|
||||
"PPC_RELOC_PAIR",
|
||||
"PPC_RELOC_BR14",
|
||||
|
Reference in New Issue
Block a user