diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-04-04 01:10:45 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-04-04 01:10:45 +0200 |
commit | 1f53966ee6b872b7443b335a84d9cf1b57394f13 (patch) | |
tree | 300e99521f0ff6baf2677363fb59696d283283e8 | |
parent | 0dc7bcdbbad5d4e99310c213d261aed2c53c4863 (diff) |
ir: Add a note about cpp_demangle.
-rw-r--r-- | src/ir/function.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir/function.rs b/src/ir/function.rs index f80a5736..0809b3c2 100644 --- a/src/ir/function.rs +++ b/src/ir/function.rs @@ -156,6 +156,9 @@ pub fn cursor_mangling(ctx: &BindgenContext, // FIXME(emilio): Can a legit symbol in other ABIs end with this string? // I don't think so, but if it can this would become a linker error // anyway, not an invalid free at runtime. + // + // TODO(emilio, #611): Use cpp_demangle if this becomes nastier with + // time. if mangling.ends_with("D0Ev") { let new_len = mangling.len() - 4; mangling.truncate(new_len); |