summaryrefslogtreecommitdiff
path: root/src/ir/function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/function.rs')
-rw-r--r--src/ir/function.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ir/function.rs b/src/ir/function.rs
index 0809b3c2..23503b05 100644
--- a/src/ir/function.rs
+++ b/src/ir/function.rs
@@ -126,6 +126,12 @@ pub fn cursor_mangling(ctx: &BindgenContext,
return None;
}
+ if let Ok(mut manglings) = cursor.cxx_manglings() {
+ if let Some(m) = manglings.pop() {
+ return Some(m);
+ }
+ }
+
let mut mangling = cursor.mangling();
if mangling.is_empty() {
return None;