lef: constify remaining .data into .rodata
This commit is contained in:
parent
ac37927186
commit
983f4cb76f
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue