]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #69965 - mark-i-m:codegen-utils, r=eddyb
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 21 Mar 2020 07:51:14 +0000 (08:51 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Mar 2020 07:51:14 +0000 (08:51 +0100)
commit0b99489a89a10b5bd4e69ca9d9c32d03582c4aea
tree50de525c3b0fcd9749e2216621f6eddd0bb143bb
parent426a4cc930476a557b1e8b3d708a8bec97bad92a
parent2d75a339ca9e7cd11338b165311927e6eb73cca4
Rollup merge of #69965 - mark-i-m:codegen-utils, r=eddyb

Refactorings to get rid of rustc_codegen_utils

r? @eddyb

cc #45276

After this, the only modules left in `rustc_codegen_utils` are
- `link`: a bunch of linking-related functions (many dealing with file names). These are mostly consumed by save analysis, rustc_driver, rustc_interface, and of course codegen. I assume they live here because we don't want a dependency of save analysis on codegen... Perhaps they can be moved to librustc?
- ~`symbol_names` and `symbol_names_test`: honestly it seems odd that `symbol_names_test` is not a submodule of `symbol_names`. It seems like these could honestly live in their own crate or move to librustc. Already name mangling is exported as the `symbol_name` query.~ (move it to its own crate)

I don't mind doing either of the above as part of this PR or a followup if you want.
src/librustc_codegen_ssa/base.rs
src/librustc_driver/lib.rs
src/librustc_metadata/creader.rs
src/librustc_save_analysis/lib.rs