[−][src]Struct rustc_codegen_llvm::back::lto::ThinLTOImportMaps

pub struct ThinLTOImportMaps {
    imports: FxHashMap<String, Vec<String>>,
    exports: FxHashMap<String, Vec<String>>,
}

Summarizes module import/export relationships used by LLVM's ThinLTO pass.

Note that we tend to have two such instances of ThinLTOImportMaps in use: one loaded from a file that represents the relationships used during the compilation associated with the incremetnal build artifacts we are attempting to reuse, and another constructed via from_thin_lto_data, which captures the relationships of ThinLTO in the current compilation.

Fields

imports: FxHashMap<String, Vec<String>>exports: FxHashMap<String, Vec<String>>

Implementations

impl ThinLTOImportMaps[src]

fn imports_of(&self, llvm_module_name: &str) -> &[String][src]

Returns modules imported by llvm_module_name during some ThinLTO pass.

fn exports_of(&self, llvm_module_name: &str) -> &[String][src]

Returns modules exported by llvm_module_name during some ThinLTO pass.

fn save_to_file(&self, path: &Path) -> Result<()>[src]

fn load_from_file(path: &Path) -> Result<ThinLTOImportMaps>[src]

unsafe fn from_thin_lto_data(data: *const ThinLTOData) -> ThinLTOImportMaps[src]

Loads the ThinLTO import map from ThinLTOData.

Trait Implementations

impl Debug for ThinLTOImportMaps[src]

impl Default for ThinLTOImportMaps[src]

Auto Trait Implementations

impl RefUnwindSafe for ThinLTOImportMaps

impl Send for ThinLTOImportMaps

impl Sync for ThinLTOImportMaps

impl Unpin for ThinLTOImportMaps

impl UnwindSafe for ThinLTOImportMaps

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.