Skip to content

Commit 3b2d23b

Browse files
committed
Move a bunch of trans into trans_common, including the context structures.
Probably more should be moved or split off into other files. My algorithm was something along the lines of: move the contexts and their transitive dependencies along with some functions to work with them. I stopped when I was going to have to start pulling glue generation, which really should go into a trans_glue file.
1 parent f8bb5a3 commit 3b2d23b

File tree

7 files changed

+369
-388
lines changed

7 files changed

+369
-388
lines changed

src/comp/back/link.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import driver::session;
33
import lib::llvm::llvm;
44
import front::attr;
5-
import middle::trans;
65
import middle::ty;
76
import metadata::encoder;
7+
import middle::trans_common::crate_ctxt;
88
import std::str;
99
import std::fs;
1010
import std::ivec;
@@ -13,7 +13,6 @@ import option::some;
1313
import option::none;
1414
import std::sha1::sha1;
1515
import std::sort;
16-
import trans::crate_ctxt;
1716
import syntax::ast;
1817
import syntax::print::pprust;
1918
import lib::llvm::llvm::ModuleRef;

src/comp/metadata/encoder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import std::ebmlivec;
1111
import std::map;
1212
import syntax::ast::*;
1313
import common::*;
14-
import middle::trans::crate_ctxt;
14+
import middle::trans_common::crate_ctxt;
1515
import middle::ty;
1616
import middle::ty::node_id_to_monotype;
1717
import front::attr;

0 commit comments

Comments
 (0)