mirror of
https://github.com/Dasharo/amd-register-interface-extractor.git
synced 2026-06-13 19:16:18 -07:00
phase4: Only show elision message for clusters that were not autogenerated.
This commit is contained in:
@@ -81,7 +81,13 @@ def traverse(source_root, parent_name, peripheral_name):
|
||||
elif node.tag == "register":
|
||||
cluster.remove(node)
|
||||
source_root.append(node)
|
||||
print("Info: Eliding cluster {!r} grouping because there's only one node in it".format(cluster.find("name").text), file=sys.stderr)
|
||||
cluster_name = cluster.find("name").text
|
||||
if not cluster_name.endswith("_unsorted"):
|
||||
print("Info: Eliding cluster {!r} grouping because there's only one node in it".format(cluster_name), file=sys.stderr)
|
||||
else:
|
||||
# generated and then elided agai
|
||||
pass # no one cares
|
||||
|
||||
break
|
||||
else:
|
||||
assert False, node.tag
|
||||
|
||||
Reference in New Issue
Block a user