From f32ca1afafa6dbe565b7209067f29c8cf9d074c3 Mon Sep 17 00:00:00 2001 From: DianQK Date: Wed, 8 Jan 2025 22:50:04 +0800 Subject: [PATCH] Document bitcode in `OutputType` --- compiler/rustc_session/src/config.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index d94338443b32..23553a5540c6 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -539,8 +539,13 @@ impl FromStr for SplitDwarfKind { #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, PartialOrd, Ord, HashStable_Generic)] #[derive(Encodable, Decodable)] pub enum OutputType { + /// This is the optimized bitcode, which could be either pre-LTO or non-LTO bitcode, + /// depending on the specific request type. Bitcode, + /// This is the summary or index data part of the ThinLTO bitcode. ThinLinkBitcode, + /// This is ThinLTO's pre-link bitcode, primarily used for embedding bitcode in object files. + /// This can also be used for FatLTO. ThinBitcode, Assembly, LlvmAssembly,