Enum rustc_codegen_llvm::errors::LlvmError
source · pub enum LlvmError<'a> {
WriteOutput {
path: &'a Path,
},
CreateTargetMachine {
triple: SmallCStr,
},
RunLlvmPasses,
SerializeModule {
name: &'a str,
},
WriteIr {
path: &'a Path,
},
PrepareThinLtoContext,
LoadBitcode {
name: CString,
},
WriteThinLtoKey {
err: Error,
},
MultipleSourceDiCompileUnit,
PrepareThinLtoModule,
ParseBitcode,
}
Variants§
WriteOutput
CreateTargetMachine
RunLlvmPasses
SerializeModule
WriteIr
PrepareThinLtoContext
LoadBitcode
WriteThinLtoKey
MultipleSourceDiCompileUnit
PrepareThinLtoModule
ParseBitcode
Trait Implementations§
source§impl<'__diagnostic_handler_sess, 'a, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for LlvmError<'a>where
G: EmissionGuarantee,
impl<'__diagnostic_handler_sess, 'a, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for LlvmError<'a>where G: EmissionGuarantee,
source§fn into_diagnostic(
self,
handler: &'__diagnostic_handler_sess Handler
) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
fn into_diagnostic( self, handler: &'__diagnostic_handler_sess Handler ) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
Write out as a diagnostic out of
Handler
.Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LlvmError<'a>
impl<'a> Send for LlvmError<'a>
impl<'a> Sync for LlvmError<'a>
impl<'a> Unpin for LlvmError<'a>
impl<'a> !UnwindSafe for LlvmError<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes
Size for each variant:
WriteOutput
: 16 bytesCreateTargetMachine
: 48 bytesRunLlvmPasses
: 0 bytesSerializeModule
: 16 bytesWriteIr
: 16 bytesPrepareThinLtoContext
: 0 bytesLoadBitcode
: 16 bytesWriteThinLtoKey
: 8 bytesMultipleSourceDiCompileUnit
: 0 bytesPrepareThinLtoModule
: 0 bytesParseBitcode
: 0 bytes