Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
70c25c84
R
Rust
项目概览
int
/
Rust
接近 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
70c25c84
编写于
6月 05, 2016
作者:
A
Ariel Ben-Yehuda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove the librustc_trans -> librustc_mir dependency
上级
0c5930ef
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
11 addition
and
18 deletion
+11
-18
mk/crates.mk
mk/crates.mk
+3
-3
src/librustc/lib.rs
src/librustc/lib.rs
+1
-0
src/librustc/mir/traversal.rs
src/librustc/mir/traversal.rs
+1
-1
src/librustc_mir/lib.rs
src/librustc_mir/lib.rs
+0
-1
src/librustc_mir/transform/add_call_guards.rs
src/librustc_mir/transform/add_call_guards.rs
+1
-3
src/librustc_mir/transform/promote_consts.rs
src/librustc_mir/transform/promote_consts.rs
+1
-1
src/librustc_mir/transform/qualify_consts.rs
src/librustc_mir/transform/qualify_consts.rs
+1
-1
src/librustc_mir/transform/simplify_cfg.rs
src/librustc_mir/transform/simplify_cfg.rs
+1
-2
src/librustc_plugin/Cargo.toml
src/librustc_plugin/Cargo.toml
+0
-1
src/librustc_plugin/lib.rs
src/librustc_plugin/lib.rs
+0
-1
src/librustc_trans/Cargo.toml
src/librustc_trans/Cargo.toml
+0
-1
src/librustc_trans/lib.rs
src/librustc_trans/lib.rs
+0
-1
src/librustc_trans/mir/analyze.rs
src/librustc_trans/mir/analyze.rs
+1
-1
src/librustc_trans/mir/mod.rs
src/librustc_trans/mir/mod.rs
+1
-1
未找到文件。
mk/crates.mk
浏览文件 @
70c25c84
...
...
@@ -109,7 +109,7 @@ DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml \
log graphviz rustc_llvm rustc_back rustc_data_structures
\
rustc_const_math
DEPS_rustc_back
:=
std syntax flate log libc
DEPS_rustc_borrowck
:=
rustc
rustc_mir log graphviz syntax
DEPS_rustc_borrowck
:=
rustc
log graphviz syntax rustc_mir
DEPS_rustc_data_structures
:=
std log serialize
DEPS_rustc_driver
:=
arena flate
getopts
graphviz libc rustc rustc_back rustc_borrowck
\
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm
\
...
...
@@ -123,9 +123,9 @@ DEPS_rustc_passes := syntax rustc core rustc_const_eval
DEPS_rustc_mir
:=
rustc syntax rustc_const_math rustc_const_eval rustc_bitflags
DEPS_rustc_resolve
:=
arena rustc log syntax
DEPS_rustc_platform_intrinsics
:=
std
DEPS_rustc_plugin
:=
rustc rustc_metadata syntax
rustc_mir
DEPS_rustc_plugin
:=
rustc rustc_metadata syntax
DEPS_rustc_privacy
:=
rustc log syntax
DEPS_rustc_trans
:=
arena flate
getopts
graphviz libc rustc rustc_back
rustc_mir
\
DEPS_rustc_trans
:=
arena flate
getopts
graphviz libc rustc rustc_back
\
log syntax serialize rustc_llvm rustc_platform_intrinsics
\
rustc_const_math rustc_const_eval rustc_incremental
DEPS_rustc_incremental
:=
rbml rustc serialize rustc_data_structures
...
...
src/librustc/lib.rs
浏览文件 @
70c25c84
...
...
@@ -106,6 +106,7 @@ pub mod mir {
pub
mod
tcx
;
pub
mod
visit
;
pub
mod
transform
;
pub
mod
traversal
;
pub
mod
mir_map
;
}
...
...
src/librustc
_
mir/traversal.rs
→
src/librustc
/
mir/traversal.rs
浏览文件 @
70c25c84
...
...
@@ -12,7 +12,7 @@
use
rustc_data_structures
::
bitvec
::
BitVector
;
use
rustc
::
mi
r
::
repr
::
*
;
use
supe
r
::
repr
::
*
;
/// Preorder traversal of a graph.
///
...
...
src/librustc_mir/lib.rs
浏览文件 @
70c25c84
...
...
@@ -49,4 +49,3 @@
pub
mod
mir_map
;
pub
mod
pretty
;
pub
mod
transform
;
pub
mod
traversal
;
src/librustc_mir/transform/add_call_guards.rs
浏览文件 @
70c25c84
...
...
@@ -11,11 +11,9 @@
use
rustc
::
ty
::
TyCtxt
;
use
rustc
::
mir
::
repr
::
*
;
use
rustc
::
mir
::
transform
::{
MirPass
,
MirSource
,
Pass
};
use
rustc
::
mir
::
traversal
;
use
pretty
;
use
traversal
;
pub
struct
AddCallGuards
;
/**
...
...
src/librustc_mir/transform/promote_consts.rs
浏览文件 @
70c25c84
...
...
@@ -24,11 +24,11 @@
use
rustc
::
mir
::
repr
::
*
;
use
rustc
::
mir
::
visit
::{
LvalueContext
,
MutVisitor
,
Visitor
};
use
rustc
::
mir
::
traversal
::
ReversePostorder
;
use
rustc
::
ty
::{
self
,
TyCtxt
};
use
syntax
::
codemap
::
Span
;
use
build
::
Location
;
use
traversal
::
ReversePostorder
;
use
std
::
mem
;
...
...
src/librustc_mir/transform/qualify_consts.rs
浏览文件 @
70c25c84
...
...
@@ -25,6 +25,7 @@
use
rustc
::
mir
::
repr
::
*
;
use
rustc
::
mir
::
mir_map
::
MirMap
;
use
rustc
::
mir
::
transform
::{
Pass
,
MirMapPass
,
MirSource
};
use
rustc
::
mir
::
traversal
::{
self
,
ReversePostorder
};
use
rustc
::
mir
::
visit
::{
LvalueContext
,
Visitor
};
use
rustc
::
util
::
nodemap
::
DefIdMap
;
use
syntax
::
abi
::
Abi
;
...
...
@@ -35,7 +36,6 @@
use
std
::
fmt
;
use
build
::
Location
;
use
traversal
::{
self
,
ReversePostorder
};
use
super
::
promote_consts
::{
self
,
Candidate
,
TempState
};
...
...
src/librustc_mir/transform/simplify_cfg.rs
浏览文件 @
70c25c84
...
...
@@ -13,13 +13,12 @@
use
rustc
::
ty
::
TyCtxt
;
use
rustc
::
mir
::
repr
::
*
;
use
rustc
::
mir
::
transform
::{
MirPass
,
MirSource
,
Pass
};
use
rustc
::
mir
::
traversal
;
use
pretty
;
use
std
::
mem
;
use
super
::
remove_dead_blocks
::
RemoveDeadBlocks
;
use
traversal
;
pub
struct
SimplifyCfg
;
impl
SimplifyCfg
{
...
...
src/librustc_plugin/Cargo.toml
浏览文件 @
70c25c84
...
...
@@ -14,5 +14,4 @@ rustc = { path = "../librustc" }
rustc_back
=
{
path
=
"../librustc_back"
}
rustc_bitflags
=
{
path
=
"../librustc_bitflags"
}
rustc_metadata
=
{
path
=
"../librustc_metadata"
}
rustc_mir
=
{
path
=
"../librustc_mir"
}
syntax
=
{
path
=
"../libsyntax"
}
src/librustc_plugin/lib.rs
浏览文件 @
70c25c84
...
...
@@ -70,7 +70,6 @@
extern
crate
rustc
;
extern
crate
rustc_back
;
extern
crate
rustc_metadata
;
extern
crate
rustc_mir
;
pub
use
self
::
registry
::
Registry
;
...
...
src/librustc_trans/Cargo.toml
浏览文件 @
70c25c84
...
...
@@ -21,7 +21,6 @@ rustc_const_math = { path = "../librustc_const_math" }
rustc_data_structures
=
{
path
=
"../librustc_data_structures"
}
rustc_incremental
=
{
path
=
"../librustc_incremental"
}
rustc_llvm
=
{
path
=
"../librustc_llvm"
}
rustc_mir
=
{
path
=
"../librustc_mir"
}
rustc_platform_intrinsics
=
{
path
=
"../librustc_platform_intrinsics"
}
serialize
=
{
path
=
"../libserialize"
}
syntax
=
{
path
=
"../libsyntax"
}
src/librustc_trans/lib.rs
浏览文件 @
70c25c84
...
...
@@ -48,7 +48,6 @@
extern
crate
rustc_data_structures
;
extern
crate
rustc_incremental
;
pub
extern
crate
rustc_llvm
as
llvm
;
extern
crate
rustc_mir
;
extern
crate
rustc_platform_intrinsics
as
intrinsics
;
extern
crate
serialize
;
extern
crate
rustc_const_math
;
...
...
src/librustc_trans/mir/analyze.rs
浏览文件 @
70c25c84
...
...
@@ -15,7 +15,7 @@
use
rustc
::
mir
::
repr
as
mir
;
use
rustc
::
mir
::
repr
::
TerminatorKind
;
use
rustc
::
mir
::
visit
::{
Visitor
,
LvalueContext
};
use
rustc
_
mir
::
traversal
;
use
rustc
::
mir
::
traversal
;
use
common
::{
self
,
Block
,
BlockAndBuilder
};
use
super
::
rvalue
;
...
...
src/librustc_trans/mir/mod.rs
浏览文件 @
70c25c84
...
...
@@ -34,7 +34,7 @@
pub
use
self
::
constant
::
trans_static_initializer
;
use
self
::
lvalue
::{
LvalueRef
,
get_dataptr
,
get_meta
};
use
rustc
_
mir
::
traversal
;
use
rustc
::
mir
::
traversal
;
use
self
::
operand
::{
OperandRef
,
OperandValue
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录