|
24 | 24 | //! int) and rec(x=int, y=int, z=int) will have the same llvm::Type. |
25 | 25 |
|
26 | 26 | use super::ModuleLlvm; |
27 | | -use super::ModuleCodegen; |
28 | | -use super::ModuleKind; |
29 | | -use super::CachedModuleCodegen; |
| 27 | +use rustc_codegen_utils::{ModuleCodegen, ModuleKind, CachedModuleCodegen}; |
30 | 28 | use super::LlvmCodegenBackend; |
31 | 29 |
|
32 | 30 | use abi; |
@@ -1197,25 +1195,3 @@ pub fn visibility_to_llvm(linkage: Visibility) -> llvm::Visibility { |
1197 | 1195 | Visibility::Protected => llvm::Visibility::Protected, |
1198 | 1196 | } |
1199 | 1197 | } |
1200 | | - |
1201 | | -// FIXME(mw): Anything that is produced via DepGraph::with_task() must implement |
1202 | | -// the HashStable trait. Normally DepGraph::with_task() calls are |
1203 | | -// hidden behind queries, but CGU creation is a special case in two |
1204 | | -// ways: (1) it's not a query and (2) CGU are output nodes, so their |
1205 | | -// Fingerprints are not actually needed. It remains to be clarified |
1206 | | -// how exactly this case will be handled in the red/green system but |
1207 | | -// for now we content ourselves with providing a no-op HashStable |
1208 | | -// implementation for CGUs. |
1209 | | -mod temp_stable_hash_impls { |
1210 | | - use rustc_data_structures::stable_hasher::{StableHasherResult, StableHasher, |
1211 | | - HashStable}; |
1212 | | - use {ModuleCodegen, ModuleLlvm}; |
1213 | | - |
1214 | | - impl<HCX> HashStable<HCX> for ModuleCodegen<ModuleLlvm> { |
1215 | | - fn hash_stable<W: StableHasherResult>(&self, |
1216 | | - _: &mut HCX, |
1217 | | - _: &mut StableHasher<W>) { |
1218 | | - // do nothing |
1219 | | - } |
1220 | | - } |
1221 | | -} |
0 commit comments