projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Copy
[mono.git]
/
mono
/
mini
/
genmdesc.c
diff --git
a/mono/mini/genmdesc.c
b/mono/mini/genmdesc.c
index 7b28861029a0482b6c1e2ba707a1c530ca698150..aad714566b9969ef59a5f8d12f792f6d661dab32 100644
(file)
--- a/
mono/mini/genmdesc.c
+++ b/
mono/mini/genmdesc.c
@@
-79,6
+79,9
@@
load_file (const char *name) {
} else if (strncmp (p, "src2:", 5) == 0) {
desc->spec [MONO_INST_SRC2] = p [5];
p += 6;
} else if (strncmp (p, "src2:", 5) == 0) {
desc->spec [MONO_INST_SRC2] = p [5];
p += 6;
+ } else if (strncmp (p, "src3:", 5) == 0) {
+ desc->spec [MONO_INST_SRC3] = p [5];
+ p += 6;
} else if (strncmp (p, "clob:", 5) == 0) {
desc->spec [MONO_INST_CLOB] = p [5];
p += 6;
} else if (strncmp (p, "clob:", 5) == 0) {
desc->spec [MONO_INST_CLOB] = p [5];
p += 6;
@@
-211,21
+214,20
@@
int
main (int argc, char* argv [])
{
init_table ();
main (int argc, char* argv [])
{
init_table ();
- switch (argc) {
- case 2:
+ if (argc == 2) {
/* useful to get a new file when some opcodes are added: looses the comments, though */
load_file (argv [1]);
dump ();
/* useful to get a new file when some opcodes are added: looses the comments, though */
load_file (argv [1]);
dump ();
- break;
- case 4:
- load_file (argv [1]);
- build_table (argv [2], argv [3]);
- break;
- default:
+ } else if (argc < 4) {
g_print ("Usage: genmdesc arguments\n");
g_print ("Usage: genmdesc arguments\n");
- g_print ("\tgenmdesc desc Output to stdout the description file.\n");
- g_print ("\tgenmdesc
desc output name
Write to output the description in a table named 'name'.\n");
+ g_print ("\tgenmdesc desc
Output to stdout the description file.\n");
+ g_print ("\tgenmdesc
output name desc [desc1...]
Write to output the description in a table named 'name'.\n");
return 1;
return 1;
+ } else {
+ int i;
+ for (i = 3; i < argc; ++i)
+ load_file (argv [i]);
+ build_table (argv [1], argv [2]);
}
return 0;
}
}
return 0;
}