summaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/parser.rs b/src/parser.rs
index d8227f3a..0e531420 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -68,13 +68,10 @@ impl<'a> ClangParserCtx<'a> {
}
}
-fn cursor_link_name(ctx: &mut ClangParserCtx, cursor: &Cursor) -> String {
- let mut mangling = cursor.mangling();
-
+fn cursor_link_name(_: &mut ClangParserCtx, cursor: &Cursor) -> String {
// Try to undo backend linkage munging (prepended _, generally)
- if cfg!(target_os = "macos") ||
- (cfg!(target_os = "windows") && !ctx.options.msvc_mangling)
- {
+ let mut mangling = cursor.mangling();
+ if cfg!(target_os = "macos") {
mangling.remove(0);
}
mangling