summaryrefslogtreecommitdiff
path: root/bindgen/codegen/dyngen.rs
diff options
context:
space:
mode:
authorChristian Poveda Ruiz <31802960+pvdrz@users.noreply.github.com>2022-11-02 15:30:34 -0500
committerGitHub <noreply@github.com>2022-11-02 15:30:34 -0500
commit9c32b460481903d90c6ac5df277bfa853a0558d8 (patch)
tree6ee9ed2f853a78942314fb71df3868b89125cc86 /bindgen/codegen/dyngen.rs
parenta673a6bc9b83675a7468379e79dcf5d5659c4623 (diff)
Add the `--override-abi` option (#2329)
* Add the `--override-abi` option. This option can be used from the CLI with the <abi>:<regex> syntax and it overrides the ABI of a function if it matches <regex>. Fixes #2257
Diffstat (limited to 'bindgen/codegen/dyngen.rs')
-rw-r--r--bindgen/codegen/dyngen.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/bindgen/codegen/dyngen.rs b/bindgen/codegen/dyngen.rs
index 26cfe5cc..d02c51e4 100644
--- a/bindgen/codegen/dyngen.rs
+++ b/bindgen/codegen/dyngen.rs
@@ -1,5 +1,5 @@
use crate::codegen;
-use crate::ir::function::Abi;
+use crate::ir::function::ClangAbi;
use proc_macro2::Ident;
/// Used to build the output tokens for dynamic bindings.
@@ -113,10 +113,10 @@ impl DynamicItems {
}
#[allow(clippy::too_many_arguments)]
- pub fn push(
+ pub(crate) fn push(
&mut self,
ident: Ident,
- abi: Abi,
+ abi: ClangAbi,
is_variadic: bool,
is_required: bool,
args: Vec<proc_macro2::TokenStream>,