Skip to content

Commit 1f53966

Browse files
committed
ir: Add a note about cpp_demangle.
1 parent 0dc7bcd commit 1f53966

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ir/function.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ pub fn cursor_mangling(ctx: &BindgenContext,
156156
// FIXME(emilio): Can a legit symbol in other ABIs end with this string?
157157
// I don't think so, but if it can this would become a linker error
158158
// anyway, not an invalid free at runtime.
159+
//
160+
// TODO(emilio, #611): Use cpp_demangle if this becomes nastier with
161+
// time.
159162
if mangling.ends_with("D0Ev") {
160163
let new_len = mangling.len() - 4;
161164
mangling.truncate(new_len);

0 commit comments

Comments
 (0)