From 33272cdc36063746645c557c5b43aeefd943e360 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Tue, 20 Jun 2017 14:09:58 -0700 Subject: Add dotted lines from modules to children in IR visualization There's a lot of these edges so it helps to make them un-bold. --- src/ir/dot.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ir/dot.rs b/src/ir/dot.rs index 40202b2c..61954c44 100644 --- a/src/ir/dot.rs +++ b/src/ir/dot.rs @@ -55,6 +55,15 @@ pub fn write_dot_file

(ctx: &BindgenContext, path: P) -> io::Result<()> if let Some(err) = err { return err; } + + if let Some(module) = item.as_module() { + for child in module.children() { + try!(writeln!(&mut dot_file, + "{} -> {} [style=dotted]", + item.id().as_usize(), + child.as_usize())); + } + } } try!(writeln!(&mut dot_file, "}}")); -- cgit v1.2.3