Improve some error messages.
This commit is contained in:
parent
d7598a0039
commit
636b1e5fa1
6
ll.py
6
ll.py
|
@ -77,7 +77,7 @@ def ty2s(ty):
|
||||||
return ty2s(ty.inner_ty) + '*'
|
return ty2s(ty.inner_ty) + '*'
|
||||||
else:
|
else:
|
||||||
# TODO
|
# TODO
|
||||||
print('Unknown type: {}'
|
print('ty2s: Unknown type: {}'
|
||||||
.format(ty))
|
.format(ty))
|
||||||
return str(ty)
|
return str(ty)
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ def oper2s(operand):
|
||||||
return '%' + operand.val
|
return '%' + operand.val
|
||||||
else:
|
else:
|
||||||
# TODO
|
# TODO
|
||||||
print('Unknown operand: {}'
|
print('oper2s: Unknown operand: {}'
|
||||||
.format(operand))
|
.format(operand))
|
||||||
|
|
||||||
|
|
||||||
|
@ -104,5 +104,5 @@ def insn2s(insn):
|
||||||
oper2s(insn.left), oper2s(insn.right)))
|
oper2s(insn.left), oper2s(insn.right)))
|
||||||
else:
|
else:
|
||||||
# TODO
|
# TODO
|
||||||
print('Unknown insn: {}'
|
print('insn2s: Unknown insn: {}'
|
||||||
.format(insn))
|
.format(insn))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user