dtolnay / cargo-llvm-lines

Count lines of LLVM IR per generic function
Apache License 2.0
414 stars 24 forks source link

v0 symbol mangling breaks proper grouping of duplicate copies #78

Open vorporeal opened 1 year ago

vorporeal commented 1 year ago

When enabling v0 symbol mangling (e.g.: by setting rustflags = "-Csymbol-mangling-version=v0" in the [build] section of the cargo config file), most duplicate copies of a function end up as their own single-copy entry in the output instead of being properly grouped.

Perhaps cargo-llvm-lines should force the symbol mangling to legacy to ensure proper behavior for projects that normally use v0?