Declares a global value import. TODO: Rename to import_data? Users of the `Module` API generally should call `Module::declare_data_in_data` instead, as it takes care of generating the appropriate `ExternalName`.
(&mut self, name: ModuleRelocTarget)
| 145 | /// `Module::declare_data_in_data` instead, as it takes care of generating |
| 146 | /// the appropriate `ExternalName`. |
| 147 | pub fn import_global_value(&mut self, name: ModuleRelocTarget) -> ir::GlobalValue { |
| 148 | self.data_decls.push(name) |
| 149 | } |
| 150 | |
| 151 | /// Write the address of `func` into the data at offset `offset`. |
| 152 | pub fn write_function_addr(&mut self, offset: CodeOffset, func: ir::FuncRef) { |