diff options
| author | Denis Merigoux <denis.merigoux@gmail.com> | 2018-08-22 17:48:32 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-16 14:11:34 +0200 |
| commit | 9c41e1aa109e27eef4e6d21e90ecbbb1a12e6468 (patch) | |
| tree | f80386a91a7d17ecf0dbb6298e1ab4d4ce69b6a0 /src/librustc_codegen_llvm/abi.rs | |
| parent | 1ca750683ef1fc6db178c2fff8c0d0fb713690ab (diff) | |
| download | rust-9c41e1aa109e27eef4e6d21e90ecbbb1a12e6468.tar.gz rust-9c41e1aa109e27eef4e6d21e90ecbbb1a12e6468.zip | |
Removed genericity over Value in various functions
Prelude to using associated types in traits rather than type parameters
Diffstat (limited to 'src/librustc_codegen_llvm/abi.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/abi.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_codegen_llvm/abi.rs b/src/librustc_codegen_llvm/abi.rs index b4aa6495da8..f59fa2f1591 100644 --- a/src/librustc_codegen_llvm/abi.rs +++ b/src/librustc_codegen_llvm/abi.rs @@ -121,7 +121,7 @@ impl LlvmType for Reg { } } RegKind::Vector => { - Type::vector::<Value>(Type::i8(cx), self.size.bytes()) + Type::vector(Type::i8(cx), self.size.bytes()) } } } @@ -145,7 +145,7 @@ impl LlvmType for CastTarget { // Simplify to array when all chunks are the same size and type if rem_bytes == 0 { - return Type::array::<Value>(rest_ll_unit, rest_count); + return Type::array(rest_ll_unit, rest_count); } } @@ -675,9 +675,9 @@ impl<'tcx> FnTypeExt<'tcx> for FnType<'tcx, Ty<'tcx>> { } if self.variadic { - Type::variadic_func::<Value>(&llargument_tys, llreturn_ty) + Type::variadic_func(&llargument_tys, llreturn_ty) } else { - Type::func::<Value>(&llargument_tys, llreturn_ty) + Type::func(&llargument_tys, llreturn_ty) } } |
