Skip to content

Commit 9cb6e23

Browse files
committed
Document bitcode in OutputType
1 parent d38c420 commit 9cb6e23

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
@@ -514,8 +514,13 @@ impl FromStr for SplitDwarfKind {
514514
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, PartialOrd, Ord, HashStable_Generic)]
515515
#[derive(Encodable, Decodable)]
516516
pub enum OutputType {
517+
/// This is the optimized bitcode, which could be either pre-LTO or non-LTO bitcode,
518+
/// depending on the specific request type.
517519
Bitcode,
520+
/// This is the summary or index data part of the ThinLTO bitcode.
518521
ThinLinkBitcode,
522+
/// This is ThinLTO's pre-link bitcode, primarily used for embedding bitcode in object files.
523+
/// This can also be used for FatLTO.
519524
ThinBitcode,
520525
Assembly,
521526
LlvmAssembly,

0 commit comments

Comments
 (0)