Skip to content

Commit f32ca1a

Browse files
committed
Document bitcode in OutputType
1 parent 1a99ca8 commit f32ca1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: compiler/rustc_session/src/config.rs

+5
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,13 @@ impl FromStr for SplitDwarfKind {
539539
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, PartialOrd, Ord, HashStable_Generic)]
540540
#[derive(Encodable, Decodable)]
541541
pub enum OutputType {
542+
/// This is the optimized bitcode, which could be either pre-LTO or non-LTO bitcode,
543+
/// depending on the specific request type.
542544
Bitcode,
545+
/// This is the summary or index data part of the ThinLTO bitcode.
543546
ThinLinkBitcode,
547+
/// This is ThinLTO's pre-link bitcode, primarily used for embedding bitcode in object files.
548+
/// This can also be used for FatLTO.
544549
ThinBitcode,
545550
Assembly,
546551
LlvmAssembly,

0 commit comments

Comments
 (0)