The other benefit is that DIBuilder keeps track of what metadata
    nodes it has generated and reuses the existing nodes instead of
    generating identical ones --- similar functionality from
    debuginfo.rs <http://debuginfo.rs> could be removed then.


I don't think this is quite correct. LLVM merges identical metadata
nodes without any outside intervention. The metadata cache in
debuginfo.rs <http://debuginfo.rs> is strictly a performance optimization.

You are right: identical metadata nodes are always merged at the LLVM side.

Cheers,
Wojtek
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to