Generate a table of encoding recipe names for each ISA.

This will be used to pretty-print encodings in the textual IR.
This commit is contained in:
Jakob Stoklund Olesen
2016-08-30 13:50:56 -07:00
parent ba26ce2e98
commit 1c51285845
3 changed files with 25 additions and 0 deletions

View File

@@ -52,4 +52,8 @@ impl TargetIsa for Isa {
|isap| isap != 17)
})
}
fn recipe_names(&self) -> &'static [&'static str] {
&encoding::RECIPE_NAMES[..]
}
}