From 636b1e5fa184f17e1575f35e0f42e269d2fe0225 Mon Sep 17 00:00:00 2001 From: cfreksen Date: Sun, 29 Oct 2017 18:57:48 +0100 Subject: [PATCH] Improve some error messages. --- ll.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ll.py b/ll.py index 1394609..a0a9c01 100644 --- a/ll.py +++ b/ll.py @@ -77,7 +77,7 @@ def ty2s(ty): return ty2s(ty.inner_ty) + '*' else: # TODO - print('Unknown type: {}' + print('ty2s: Unknown type: {}' .format(ty)) return str(ty) @@ -89,7 +89,7 @@ def oper2s(operand): return '%' + operand.val else: # TODO - print('Unknown operand: {}' + print('oper2s: Unknown operand: {}' .format(operand)) @@ -104,5 +104,5 @@ def insn2s(insn): oper2s(insn.left), oper2s(insn.right))) else: # TODO - print('Unknown insn: {}' + print('insn2s: Unknown insn: {}' .format(insn))