Skip to content

Commit 915382f

Browse files
denismerigouxeddyb
authored andcommitted
Moved DeclareMethods, MiscMethods and StaticMethods
1 parent c9f26c2 commit 915382f

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

src/librustc_codegen_llvm/interfaces/mod.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,22 @@ mod asm;
1313
mod builder;
1414
mod consts;
1515
mod debuginfo;
16-
mod declare;
1716
mod intrinsic;
18-
mod misc;
19-
mod statics;
2017
mod type_;
2118

2219
pub use self::abi::{AbiBuilderMethods, AbiMethods};
2320
pub use self::asm::{AsmBuilderMethods, AsmMethods};
2421
pub use self::builder::BuilderMethods;
2522
pub use self::consts::ConstMethods;
2623
pub use self::debuginfo::{DebugInfoBuilderMethods, DebugInfoMethods};
27-
pub use self::declare::{DeclareMethods, PreDefineMethods};
2824
pub use self::intrinsic::{IntrinsicCallMethods, IntrinsicDeclarationMethods};
29-
pub use self::misc::MiscMethods;
30-
pub use self::statics::StaticMethods;
3125
pub use self::type_::{
3226
ArgTypeMethods, BaseTypeMethods, DerivedTypeMethods, LayoutTypeMethods, TypeMethods,
3327
};
34-
pub use rustc_codegen_ssa::interfaces::{Backend, BackendMethods, BackendTypes, CodegenObject};
28+
pub use rustc_codegen_ssa::interfaces::{
29+
Backend, BackendMethods, BackendTypes, CodegenObject, DeclareMethods, MiscMethods,
30+
PreDefineMethods, StaticMethods,
31+
};
3532

3633
pub trait CodegenMethods<'tcx>:
3734
Backend<'tcx>

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
@@ -9,10 +9,10 @@
99
// except according to those terms.
1010

1111
use super::Backend;
12-
use monomorphize::Instance;
1312
use rustc::hir::def_id::DefId;
1413
use rustc::mir::mono::{Linkage, Visibility};
1514
use rustc::ty;
15+
use rustc_mir::monomorphize::Instance;
1616

1717
pub trait DeclareMethods<'tcx>: Backend<'tcx> {
1818
/// Declare a global value.

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
@@ -10,11 +10,11 @@
1010

1111
use super::Backend;
1212
use libc::c_uint;
13-
use monomorphize::partitioning::CodegenUnit;
1413
use rustc::mir::mono::Stats;
1514
use rustc::session::Session;
1615
use rustc::ty::{self, Instance, Ty};
1716
use rustc::util::nodemap::FxHashMap;
17+
use rustc_mir::monomorphize::partitioning::CodegenUnit;
1818
use std::cell::RefCell;
1919
use std::sync::Arc;
2020

src/librustc_codegen_ssa/interfaces/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
// except according to those terms.
1010

1111
mod backend;
12+
mod declare;
13+
mod misc;
14+
mod statics;
1215

1316
pub use self::backend::{Backend, BackendMethods, BackendTypes};
17+
pub use self::declare::{DeclareMethods, PreDefineMethods};
18+
pub use self::misc::MiscMethods;
19+
pub use self::statics::StaticMethods;
1420

1521
use std::fmt;
1622

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)