summaryrefslogtreecommitdiff
path: root/rust/src/callingconvention.rs
diff options
context:
space:
mode:
authorendeavor <endeavor@rainbowsandpwnies.com>2021-06-10 13:37:08 -0400
committerKyle Martin <krm504@nyu.edu>2021-06-15 13:15:22 -0400
commit39c62ef4b8ed03ca442ae5730b98346710d0a3c4 (patch)
tree89e03584cf3cddc95867c9faeec8765a2c8f04b4 /rust/src/callingconvention.rs
parentbec24a5aeed8249e396b420364c5db886427e13c (diff)
formatting
Diffstat (limited to 'rust/src/callingconvention.rs')
-rw-r--r--rust/src/callingconvention.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/rust/src/callingconvention.rs b/rust/src/callingconvention.rs
index a4bd599b..fb7fd3e1 100644
--- a/rust/src/callingconvention.rs
+++ b/rust/src/callingconvention.rs
@@ -353,11 +353,14 @@ where
where
C: CallingConventionBase,
{
- ffi_wrap!("CallingConvention::are_argument_registers_used_for_var_args", unsafe {
- let ctxt = &*(ctxt as *mut CustomCallingConventionContext<C>);
+ ffi_wrap!(
+ "CallingConvention::are_argument_registers_used_for_var_args",
+ unsafe {
+ let ctxt = &*(ctxt as *mut CustomCallingConventionContext<C>);
- ctxt.cc.are_argument_registers_used_for_var_args()
- })
+ ctxt.cc.are_argument_registers_used_for_var_args()
+ }
+ )
}
let name = name.as_bytes_with_nul();
@@ -687,7 +690,7 @@ impl<A: Architecture> ConventionBuilder<A> {
reg!(global_pointer_reg);
reg_list!(implicitly_defined_registers);
-
+
bool_arg!(are_argument_registers_used_for_var_args);
pub fn register(self, name: &str) -> Ref<CallingConvention<A>> {