diff options
| author | Denis Merigoux <denis.merigoux@gmail.com> | 2018-08-30 15:41:59 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-16 14:11:59 +0200 |
| commit | 3e77f2fc4f679792bc9579fb9716c3a72fd1397b (patch) | |
| tree | 5627434cc92fb9bd34851f6ef19dcf33ecc53449 /src/librustc_codegen_llvm/llvm | |
| parent | 6c5b990c5f5e17f044d7c4673802a11d50bc709f (diff) | |
| download | rust-3e77f2fc4f679792bc9579fb9716c3a72fd1397b.tar.gz rust-3e77f2fc4f679792bc9579fb9716c3a72fd1397b.zip | |
Use the method form for CodegenCx everywhere
Diffstat (limited to 'src/librustc_codegen_llvm/llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/llvm/ffi.rs | 8 | ||||
| -rw-r--r-- | src/librustc_codegen_llvm/llvm/mod.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc_codegen_llvm/llvm/ffi.rs b/src/librustc_codegen_llvm/llvm/ffi.rs index e35daee0a70..e80c66fbe24 100644 --- a/src/librustc_codegen_llvm/llvm/ffi.rs +++ b/src/librustc_codegen_llvm/llvm/ffi.rs @@ -246,7 +246,7 @@ pub enum AtomicRmwBinOp { } impl AtomicRmwBinOp { - pub fn from_generic(op : common::AtomicRmwBinOp) -> Self { + pub fn from_generic(op: common::AtomicRmwBinOp) -> Self { match op { common::AtomicRmwBinOp::AtomicXchg => AtomicRmwBinOp::AtomicXchg, common::AtomicRmwBinOp::AtomicAdd => AtomicRmwBinOp::AtomicAdd, @@ -279,7 +279,7 @@ pub enum AtomicOrdering { } impl AtomicOrdering { - pub fn from_generic(ao : common::AtomicOrdering) -> Self { + pub fn from_generic(ao: common::AtomicOrdering) -> Self { match ao { common::AtomicOrdering::NotAtomic => AtomicOrdering::NotAtomic, common::AtomicOrdering::Unordered => AtomicOrdering::Unordered, @@ -306,7 +306,7 @@ pub enum SynchronizationScope { } impl SynchronizationScope { - pub fn from_generic(sc : common::SynchronizationScope) -> Self { + pub fn from_generic(sc: common::SynchronizationScope) -> Self { match sc { common::SynchronizationScope::Other => SynchronizationScope::Other, common::SynchronizationScope::SingleThread => SynchronizationScope::SingleThread, @@ -356,7 +356,7 @@ pub enum AsmDialect { } impl AsmDialect { - pub fn from_generic(asm : syntax::ast::AsmDialect) -> Self { + pub fn from_generic(asm: syntax::ast::AsmDialect) -> Self { match asm { syntax::ast::AsmDialect::Att => AsmDialect::Att, syntax::ast::AsmDialect::Intel => AsmDialect::Intel diff --git a/src/librustc_codegen_llvm/llvm/mod.rs b/src/librustc_codegen_llvm/llvm/mod.rs index 3b85690e878..1d90f8be46d 100644 --- a/src/librustc_codegen_llvm/llvm/mod.rs +++ b/src/librustc_codegen_llvm/llvm/mod.rs @@ -273,7 +273,7 @@ impl OperandBundleDef<'a> { OperandBundleDef { raw: def } } - pub fn from_generic(bundle : &common::OperandBundleDef<'a, &'a Value>) -> Self { + pub fn from_generic(bundle: &common::OperandBundleDef<'a, &'a Value>) -> Self { Self::new(bundle.name, &[bundle.val]) } } |
