Struct rustc_codegen_llvm::back::archive::LlvmArchiveBuilder
source · [−]pub struct LlvmArchiveBuilder<'a> {
config: ArchiveConfig<'a>,
removals: Vec<String>,
additions: Vec<Addition>,
should_update_symbols: bool,
src_archive: Option<Option<ArchiveRO>>,
}Expand description
Helper for adding many files to an archive.
Fields
config: ArchiveConfig<'a>removals: Vec<String>additions: Vec<Addition>should_update_symbols: boolsrc_archive: Option<Option<ArchiveRO>>Implementations
sourceimpl<'a> LlvmArchiveBuilder<'a>
impl<'a> LlvmArchiveBuilder<'a>
fn src_archive(&mut self) -> Option<&ArchiveRO>
fn llvm_archive_kind(&self) -> Result<ArchiveKind, &str>
fn build_with_llvm(&mut self, kind: ArchiveKind) -> Result<()>
fn i686_decorated_name(import: &DllImport, mingw: bool) -> String
Trait Implementations
sourceimpl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a>
impl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a>
sourcefn new(
sess: &'a Session,
output: &Path,
input: Option<&Path>
) -> LlvmArchiveBuilder<'a>
fn new(
sess: &'a Session,
output: &Path,
input: Option<&Path>
) -> LlvmArchiveBuilder<'a>
Creates a new static archive, ready for modifying the archive specified
by config.
sourcefn remove_file(&mut self, file: &str)
fn remove_file(&mut self, file: &str)
Removes a file from this archive
sourcefn update_symbols(&mut self)
fn update_symbols(&mut self)
Indicate that the next call to build should update all symbols in
the archive (equivalent to running ‘ar s’ over it).
fn add_archive<F>(&mut self, archive: &Path, skip: F) -> Result<()> where
F: FnMut(&str) -> bool + 'static,
fn inject_dll_import_lib(
&mut self,
lib_name: &str,
dll_imports: &[DllImport],
tmpdir: &MaybeTempDir
)
Auto Trait Implementations
impl<'a> !RefUnwindSafe for LlvmArchiveBuilder<'a>
impl<'a> !Send for LlvmArchiveBuilder<'a>
impl<'a> !Sync for LlvmArchiveBuilder<'a>
impl<'a> Unpin for LlvmArchiveBuilder<'a>
impl<'a> !UnwindSafe for LlvmArchiveBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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: 128 bytes