Moved DeclareMethods, MiscMethods and StaticMethods
This commit is contained in:
parent
c9f26c2155
commit
915382f730
@ -13,10 +13,7 @@ mod asm;
|
||||
mod builder;
|
||||
mod consts;
|
||||
mod debuginfo;
|
||||
mod declare;
|
||||
mod intrinsic;
|
||||
mod misc;
|
||||
mod statics;
|
||||
mod type_;
|
||||
|
||||
pub use self::abi::{AbiBuilderMethods, AbiMethods};
|
||||
@ -24,14 +21,14 @@ pub use self::asm::{AsmBuilderMethods, AsmMethods};
|
||||
pub use self::builder::BuilderMethods;
|
||||
pub use self::consts::ConstMethods;
|
||||
pub use self::debuginfo::{DebugInfoBuilderMethods, DebugInfoMethods};
|
||||
pub use self::declare::{DeclareMethods, PreDefineMethods};
|
||||
pub use self::intrinsic::{IntrinsicCallMethods, IntrinsicDeclarationMethods};
|
||||
pub use self::misc::MiscMethods;
|
||||
pub use self::statics::StaticMethods;
|
||||
pub use self::type_::{
|
||||
ArgTypeMethods, BaseTypeMethods, DerivedTypeMethods, LayoutTypeMethods, TypeMethods,
|
||||
};
|
||||
pub use rustc_codegen_ssa::interfaces::{Backend, BackendMethods, BackendTypes, CodegenObject};
|
||||
pub use rustc_codegen_ssa::interfaces::{
|
||||
Backend, BackendMethods, BackendTypes, CodegenObject, DeclareMethods, MiscMethods,
|
||||
PreDefineMethods, StaticMethods,
|
||||
};
|
||||
|
||||
pub trait CodegenMethods<'tcx>:
|
||||
Backend<'tcx>
|
||||
|
@ -9,10 +9,10 @@
|
||||
// except according to those terms.
|
||||
|
||||
use super::Backend;
|
||||
use monomorphize::Instance;
|
||||
use rustc::hir::def_id::DefId;
|
||||
use rustc::mir::mono::{Linkage, Visibility};
|
||||
use rustc::ty;
|
||||
use rustc_mir::monomorphize::Instance;
|
||||
|
||||
pub trait DeclareMethods<'tcx>: Backend<'tcx> {
|
||||
/// Declare a global value.
|
@ -10,11 +10,11 @@
|
||||
|
||||
use super::Backend;
|
||||
use libc::c_uint;
|
||||
use monomorphize::partitioning::CodegenUnit;
|
||||
use rustc::mir::mono::Stats;
|
||||
use rustc::session::Session;
|
||||
use rustc::ty::{self, Instance, Ty};
|
||||
use rustc::util::nodemap::FxHashMap;
|
||||
use rustc_mir::monomorphize::partitioning::CodegenUnit;
|
||||
use std::cell::RefCell;
|
||||
use std::sync::Arc;
|
||||
|
@ -9,8 +9,14 @@
|
||||
// except according to those terms.
|
||||
|
||||
mod backend;
|
||||
mod declare;
|
||||
mod misc;
|
||||
mod statics;
|
||||
|
||||
pub use self::backend::{Backend, BackendMethods, BackendTypes};
|
||||
pub use self::declare::{DeclareMethods, PreDefineMethods};
|
||||
pub use self::misc::MiscMethods;
|
||||
pub use self::statics::StaticMethods;
|
||||
|
||||
use std::fmt;
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
#![feature(box_patterns)]
|
||||
#![feature(box_syntax)]
|
||||
#![feature(custom_attribute)]
|
||||
#![feature(libc)]
|
||||
#![feature(nll)]
|
||||
#![allow(unused_attributes)]
|
||||
#![allow(dead_code)]
|
||||
@ -33,6 +34,7 @@ extern crate rustc_mir;
|
||||
extern crate syntax;
|
||||
extern crate syntax_pos;
|
||||
extern crate rustc_data_structures;
|
||||
extern crate libc;
|
||||
|
||||
use std::path::PathBuf;
|
||||
use rustc::dep_graph::WorkProduct;
|
||||
|
Loading…
x
Reference in New Issue
Block a user