From 8d0a04966c97eb2015c950396e54f31f5212a888 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Fri, 15 Aug 2025 20:06:01 +1000 Subject: Declare module `rustc_codegen_llvm::back` in the normal way Declaring these submodules directly in `lib.rs` was needlessly confusing. --- compiler/rustc_codegen_llvm/src/back/mod.rs | 5 +++++ compiler/rustc_codegen_llvm/src/lib.rs | 9 +-------- 2 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 compiler/rustc_codegen_llvm/src/back/mod.rs (limited to 'compiler/rustc_codegen_llvm') diff --git a/compiler/rustc_codegen_llvm/src/back/mod.rs b/compiler/rustc_codegen_llvm/src/back/mod.rs new file mode 100644 index 00000000000..6cb89f80ab8 --- /dev/null +++ b/compiler/rustc_codegen_llvm/src/back/mod.rs @@ -0,0 +1,5 @@ +pub(crate) mod archive; +pub(crate) mod lto; +pub(crate) mod owned_target_machine; +mod profiling; +pub(crate) mod write; diff --git a/compiler/rustc_codegen_llvm/src/lib.rs b/compiler/rustc_codegen_llvm/src/lib.rs index ca84b6de8b1..3264a747e3a 100644 --- a/compiler/rustc_codegen_llvm/src/lib.rs +++ b/compiler/rustc_codegen_llvm/src/lib.rs @@ -47,18 +47,11 @@ use rustc_session::Session; use rustc_session::config::{OptLevel, OutputFilenames, PrintKind, PrintRequest}; use rustc_span::Symbol; -mod back { - pub(crate) mod archive; - pub(crate) mod lto; - pub(crate) mod owned_target_machine; - mod profiling; - pub(crate) mod write; -} - mod abi; mod allocator; mod asm; mod attributes; +mod back; mod base; mod builder; mod callee; -- cgit 1.4.1-3-g733a5