Add a field to store the reason trail in OpCodes
authorMichele Tartara <mtartara@google.com>
Mon, 25 Mar 2013 17:24:51 +0000 (18:24 +0100)
committerMichele Tartara <mtartara@google.com>
Mon, 22 Apr 2013 11:14:44 +0000 (11:14 +0000)
The reason trail will be available for all the OpCodes, so the field that
is to contain it has to be added to the OpCode base class.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>

lib/opcodes.py

index 74ebe9c..ee4da31 100644 (file)
@@ -659,6 +659,8 @@ class OpCode(BaseOpCode):
      " for details"),
     (COMMENT_ATTR, None, ht.TMaybeString,
      "Comment describing the purpose of the opcode"),
+    (constants.OPCODE_REASON, None, ht.TMaybeList,
+     "The reason trail, describing why the OpCode is executed"),
     ]
   OP_RESULT = None