lef: constify remaining .data into .rodata

This commit is contained in:
Darryl L. Miles 2025-02-18 13:52:14 +00:00 committed by Tim Edwards
parent ac37927186
commit 983f4cb76f
3 changed files with 5 additions and 5 deletions

View File

@ -1498,7 +1498,7 @@ DefReadPins(
NULL NULL
}; };
static int lef_class_to_bitmask[] = { static const int lef_class_to_bitmask[] = {
PORT_CLASS_DEFAULT, PORT_CLASS_DEFAULT,
PORT_CLASS_INPUT, PORT_CLASS_INPUT,
PORT_CLASS_TRISTATE, PORT_CLASS_TRISTATE,
@ -1507,7 +1507,7 @@ DefReadPins(
PORT_CLASS_FEEDTHROUGH PORT_CLASS_FEEDTHROUGH
}; };
static int lef_use_to_bitmask[] = { static const int lef_use_to_bitmask[] = {
PORT_USE_DEFAULT, PORT_USE_DEFAULT,
PORT_USE_SIGNAL, PORT_USE_SIGNAL,
PORT_USE_POWER, PORT_USE_POWER,

View File

@ -194,7 +194,7 @@ const char *
defTransPos( defTransPos(
Transform *t) Transform *t)
{ {
static const char * def_orient[] = { static const char * const def_orient[] = {
"N", "S", "E", "W", "FN", "FS", "FE", "FW" "N", "S", "E", "W", "FN", "FS", "FE", "FW"
}; };

View File

@ -311,10 +311,10 @@ LefError(
static int errors = 0, warnings = 0, messages = 0; static int errors = 0, warnings = 0, messages = 0;
va_list args; va_list args;
char *lefdeftypes[] = {"LEF", "DEF", "techfile lef section"}; const char *lefdeftypes[] = {"LEF", "DEF", "techfile lef section"};
int mode, level; int mode, level;
char *lefdeftype; const char *lefdeftype;
switch (type) { switch (type) {
case LEF_INFO: case LEF_INFO: