Mercurial > lcfOS
diff python/ppci/codegen/flowgraph.py @ 337:b00219172a42
Added cool lm3s811 qemu project
author | Windel Bouwman |
---|---|
date | Thu, 20 Feb 2014 20:04:52 +0100 |
parents | 6753763d3bec |
children |
line wrap: on
line diff
--- a/python/ppci/codegen/flowgraph.py Wed Feb 19 22:32:15 2014 +0100 +++ b/python/ppci/codegen/flowgraph.py Thu Feb 20 20:04:52 2014 +0100 @@ -20,6 +20,7 @@ return r + class FlowGraph(DiGraph): def __init__(self, instrs): """ Create a flowgraph from a list of abstract instructions """ @@ -29,7 +30,7 @@ for ins in instrs: n = FlowGraphNode(self, ins) self._map[ins] = n - self.addNode(n) + self.add_node(n) # Make edges: prev = None