about summary refs log tree commit diff
path: root/src/librustc_target
diff options
context:
space:
mode:
authorDan Robertson <dan@dlrobertson.com>2019-02-08 17:30:42 +0000
committerDan Robertson <dan@dlrobertson.com>2019-02-27 10:21:54 -0500
commit08bd4ff9987fc57215a2fe54c63da0e86d9e6fbf (patch)
tree35f5410433d1af5e6eff929cc4c1750dc43c9595 /src/librustc_target
parenta618ad6335f7cb70005884542f0548ef29f23b7e (diff)
downloadrust-08bd4ff9987fc57215a2fe54c63da0e86d9e6fbf.tar.gz
rust-08bd4ff9987fc57215a2fe54c63da0e86d9e6fbf.zip
Rename variadic to c_variadic
Function signatures with the `variadic` member set are actually
C-variadic functions. Make this a little more explicit by renaming the
`variadic` boolean value, `c_variadic`.
Diffstat (limited to 'src/librustc_target')
-rw-r--r--src/librustc_target/abi/call/arm.rs2
-rw-r--r--src/librustc_target/abi/call/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_target/abi/call/arm.rs b/src/librustc_target/abi/call/arm.rs
index 52d7f3ac3dc..e3fee8e5700 100644
--- a/src/librustc_target/abi/call/arm.rs
+++ b/src/librustc_target/abi/call/arm.rs
@@ -99,7 +99,7 @@ pub fn compute_abi_info<'a, Ty, C>(cx: &C, fty: &mut FnType<'a, Ty>)
     // `extern "aapcs"`, then we must use the VFP registers for homogeneous aggregates.
     let vfp = cx.target_spec().llvm_target.ends_with("hf")
         && fty.conv != Conv::ArmAapcs
-        && !fty.variadic;
+        && !fty.c_variadic;
 
     if !fty.ret.is_ignore() {
         classify_ret_ty(cx, &mut fty.ret, vfp);
diff --git a/src/librustc_target/abi/call/mod.rs b/src/librustc_target/abi/call/mod.rs
index 8ada328a158..fbbd120f934 100644
--- a/src/librustc_target/abi/call/mod.rs
+++ b/src/librustc_target/abi/call/mod.rs
@@ -531,7 +531,7 @@ pub struct FnType<'a, Ty> {
     /// LLVM return type.
     pub ret: ArgType<'a, Ty>,
 
-    pub variadic: bool,
+    pub c_variadic: bool,
 
     pub conv: Conv,
 }