mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7090968: Allow adlc register class to depend on runtime conditions
Allow reg_class definition as a function. Reviewed-by: kvn, never
This commit is contained in:
parent
9d8e44db59
commit
07d9df5a7f
9 changed files with 39 additions and 59 deletions
|
@ -823,9 +823,9 @@ static const char *getRegMask(const char *reg_class_name) {
|
|||
} else {
|
||||
char *rc_name = toUpper(reg_class_name);
|
||||
const char *mask = "_mask";
|
||||
int length = (int)strlen(rc_name) + (int)strlen(mask) + 3;
|
||||
int length = (int)strlen(rc_name) + (int)strlen(mask) + 5;
|
||||
char *regMask = new char[length];
|
||||
sprintf(regMask,"%s%s", rc_name, mask);
|
||||
sprintf(regMask,"%s%s()", rc_name, mask);
|
||||
return regMask;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue