Skip to content

Commit 26e18a1

Browse files
committed
Moved DeclareMethods, MiscMethods and StaticMethods
1 parent 31dee75 commit 26e18a1

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

src/librustc_codegen_llvm/interfaces/mod.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,19 @@ mod builder;
1212
mod consts;
1313
mod type_;
1414
mod intrinsic;
15-
mod statics;
16-
mod misc;
1715
mod debuginfo;
1816
mod abi;
19-
mod declare;
2017
mod asm;
2118

2219
pub use self::builder::{BuilderMethods, HasCodegen};
23-
pub use rustc_codegen_ssa::interfaces::{Backend, BackendMethods, CodegenObject};
20+
pub use rustc_codegen_ssa::interfaces::{Backend, BackendMethods, CodegenObject, MiscMethods,
21+
StaticMethods, DeclareMethods, PreDefineMethods};
2422
pub use self::consts::ConstMethods;
2523
pub use self::type_::{TypeMethods, BaseTypeMethods, DerivedTypeMethods,
2624
LayoutTypeMethods, ArgTypeMethods};
2725
pub use self::intrinsic::{IntrinsicCallMethods, IntrinsicDeclarationMethods};
28-
pub use self::statics::StaticMethods;
29-
pub use self::misc::MiscMethods;
3026
pub use self::debuginfo::{DebugInfoMethods, DebugInfoBuilderMethods};
3127
pub use self::abi::{AbiMethods, AbiBuilderMethods};
32-
pub use self::declare::{DeclareMethods, PreDefineMethods};
3328
pub use self::asm::{AsmMethods, AsmBuilderMethods};
3429

3530
pub trait CodegenMethods<'ll, 'tcx: 'll> :

src/librustc_codegen_llvm/interfaces/declare.rs renamed to src/librustc_codegen_ssa/interfaces/declare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use rustc::ty::Ty;
1212
use super::Backend;
1313
use rustc::hir::def_id::DefId;
1414
use rustc::mir::mono::{Linkage, Visibility};
15-
use monomorphize::Instance;
15+
use rustc_mir::monomorphize::Instance;
1616

1717
pub trait DeclareMethods<'ll, 'tcx: 'll> : Backend<'ll> {
1818

src/librustc_codegen_llvm/interfaces/misc.rs renamed to src/librustc_codegen_ssa/interfaces/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use rustc::session::Session;
1616
use libc::c_uint;
1717
use rustc::mir::mono::Stats;
1818
use std::sync::Arc;
19-
use monomorphize::partitioning::CodegenUnit;
19+
use rustc_mir::monomorphize::partitioning::CodegenUnit;
2020

2121
pub trait MiscMethods<'ll, 'tcx: 'll> : Backend<'ll> {
2222
fn vtables(&self) -> &RefCell<FxHashMap<(Ty<'tcx>,

src/librustc_codegen_ssa/interfaces/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010

1111
use std::fmt;
1212
mod backend;
13+
mod misc;
14+
mod statics;
15+
mod declare;
1316

1417
pub use self::backend::{Backend, BackendMethods};
18+
pub use self::misc::MiscMethods;
19+
pub use self::statics::StaticMethods;
20+
pub use self::declare::{DeclareMethods, PreDefineMethods};
1521

1622
pub trait CodegenObject : Copy + PartialEq + fmt::Debug {}

src/librustc_codegen_ssa/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#![feature(box_patterns)]
2020
#![feature(box_syntax)]
2121
#![feature(custom_attribute)]
22+
#![feature(libc)]
2223
#![feature(nll)]
2324
#![allow(unused_attributes)]
2425
#![allow(dead_code)]
@@ -33,6 +34,7 @@ extern crate rustc_mir;
3334
extern crate syntax;
3435
extern crate syntax_pos;
3536
extern crate rustc_data_structures;
37+
extern crate libc;
3638

3739
use std::path::PathBuf;
3840
use rustc::dep_graph::WorkProduct;

0 commit comments

Comments
 (0)