[−][src]Struct rustc_codegen_llvm::back::lto::ThinLTOImportMaps
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]
fn default() -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,