Skip to content

Commit d1b2598

Browse files
committed
Document bitcode in OutputType
1 parent 6b58f52 commit d1b2598

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_session/src/config.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,13 @@ impl FromStr for SplitDwarfKind {
540540
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, PartialOrd, Ord, HashStable_Generic)]
541541
#[derive(Encodable, Decodable)]
542542
pub enum OutputType {
543+
/// This is the optimized bitcode, which could be either pre-LTO or non-LTO bitcode,
544+
/// depending on the specific request type.
543545
Bitcode,
546+
/// This is the summary or index data part of the ThinLTO bitcode.
544547
ThinLinkBitcode,
548+
/// This is ThinLTO's pre-link bitcode, primarily used for embedding bitcode in object files.
549+
/// This can also be used for FatLTO.
545550
ThinBitcode,
546551
Assembly,
547552
LlvmAssembly,

0 commit comments

Comments
 (0)