diff options
| author | Denis Merigoux <denis.merigoux@gmail.com> | 2018-09-06 14:44:51 -0700 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-16 14:11:59 +0200 |
| commit | a1d0d4f9439640d8694ebb7fa905f4e328d5febd (patch) | |
| tree | 447f51146f100f004852565c52e10e7b3eabb260 /src/librustc_codegen_llvm/lib.rs | |
| parent | e224f063e8b7ea16302d0b048b9272dfe8465734 (diff) | |
| download | rust-a1d0d4f9439640d8694ebb7fa905f4e328d5febd.tar.gz rust-a1d0d4f9439640d8694ebb7fa905f4e328d5febd.zip | |
Removing LLVM content from CommonMethods -> ConstMethods
Diffstat (limited to 'src/librustc_codegen_llvm/lib.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/lib.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/librustc_codegen_llvm/lib.rs b/src/librustc_codegen_llvm/lib.rs index f3dc9ca0002..f8f50326f0e 100644 --- a/src/librustc_codegen_llvm/lib.rs +++ b/src/librustc_codegen_llvm/lib.rs @@ -68,9 +68,6 @@ extern crate tempfile; extern crate memmap; use back::bytecode::RLIB_BYTECODE_EXTENSION; -use interfaces::{Backend, CommonWriteMethods}; -use value::Value; -use type_::Type; pub use llvm_util::target_features; use std::any::Any; @@ -326,14 +323,6 @@ struct ModuleLlvm<'ll> { phantom: PhantomData<&'ll ()> } -impl<'ll> Backend for ModuleLlvm<'ll> { - type Value = &'ll Value; - type BasicBlock = &'ll llvm::BasicBlock; - type Type = &'ll Type; - type TypeKind = llvm::TypeKind; - type Context = &'ll llvm::Context; -} - unsafe impl Send for ModuleLlvm<'ll> { } unsafe impl Sync for ModuleLlvm<'ll> { } @@ -359,25 +348,6 @@ impl ModuleLlvm<'ll> { } } -impl CommonWriteMethods for ModuleLlvm<'ll> { - fn val_ty(&self, v: &'ll Value) -> &'ll Type { - common::val_ty(v) - } - - fn const_bytes_in_context(&self, llcx: &'ll llvm::Context, bytes: &[u8]) -> &'ll Value { - common::const_bytes_in_context(llcx, bytes) - } - - fn const_struct_in_context( - &self, - llcx: &'a llvm::Context, - elts: &[&'a Value], - packed: bool, - ) -> &'a Value { - common::const_struct_in_context(llcx, elts, packed) - } -} - impl Drop for ModuleLlvm<'ll> { fn drop(&mut self) { unsafe { |
