Try to depend only on the ir module being in scope.

Generated code should used qualified names assuming that `ir` is in
scope, not everything else.
This commit is contained in:
Jakob Stoklund Olesen
2017-07-28 16:13:51 -07:00
parent 542bad0758
commit 99d34cbbd7
9 changed files with 11 additions and 11 deletions

View File

@@ -350,10 +350,10 @@ def gen_typesets_table(fmt, type_sets):
fmt.comment('Table of value type sets.')
assert len(type_sets.table) <= typeset_limit, "Too many type sets"
with fmt.indented(
'const TYPE_SETS : [ValueTypeSet; {}] = ['
'const TYPE_SETS : [ir::instructions::ValueTypeSet; {}] = ['
.format(len(type_sets.table)), '];'):
for ts in type_sets.table:
with fmt.indented('ValueTypeSet {', '},'):
with fmt.indented('ir::instructions::ValueTypeSet {', '},'):
ts.emit_fields(fmt)