diff options
| author | Denis Merigoux <denis.merigoux@gmail.com> | 2018-08-29 15:56:30 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-16 14:11:59 +0200 |
| commit | 83e07f9fe9b7237fd48f79112686b886ae56a920 (patch) | |
| tree | 03aedb499c06100f6c4cdd7d46bb9237374c59ac /src/librustc_codegen_llvm/interfaces | |
| parent | d3258448045d672b0cd273cb1ea9381b470c2ca2 (diff) | |
| download | rust-83e07f9fe9b7237fd48f79112686b886ae56a920.tar.gz rust-83e07f9fe9b7237fd48f79112686b886ae56a920.zip | |
Added self argument for Codegen CommonMethod trait methods
Diffstat (limited to 'src/librustc_codegen_llvm/interfaces')
| -rw-r--r-- | src/librustc_codegen_llvm/interfaces/common.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc_codegen_llvm/interfaces/common.rs b/src/librustc_codegen_llvm/interfaces/common.rs index c43e3b7504a..fe587bd8f83 100644 --- a/src/librustc_codegen_llvm/interfaces/common.rs +++ b/src/librustc_codegen_llvm/interfaces/common.rs @@ -15,11 +15,11 @@ pub trait CommonMethods : Backend { fn val_ty(v: Self::Value) -> Self::Type; // Constant constructors - fn c_null(t: Self::Type) -> Self::Value; - fn c_undef(t: Self::Type) -> Self::Value; - fn c_int(t: Self::Type, i: i64) -> Self::Value; - fn c_uint(t: Self::Type, i: u64) -> Self::Value; - fn c_uint_big(t: Self::Type, u: u128) -> Self::Value; + fn c_null(&self, t: Self::Type) -> Self::Value; + fn c_undef(&self, t: Self::Type) -> Self::Value; + fn c_int(&self, t: Self::Type, i: i64) -> Self::Value; + fn c_uint(&self, t: Self::Type, i: u64) -> Self::Value; + fn c_uint_big(&self, t: Self::Type, u: u128) -> Self::Value; fn c_bool(&self, val: bool) -> Self::Value; fn c_i32(&self, i: i32) -> Self::Value; fn c_u32(&self, i: u32) -> Self::Value; |
