summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ir/dot.rs9
1 files changed, 9 insertions, 0 deletions
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<P>(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, "}}"));