Adds a signature which can later be used to declare an external function import.
(&mut self, signature: Signature)
| 249 | |
| 250 | /// Adds a signature which can later be used to declare an external function import. |
| 251 | pub fn import_signature(&mut self, signature: Signature) -> SigRef { |
| 252 | self.dfg.signatures.push(signature) |
| 253 | } |
| 254 | |
| 255 | /// Declares a global value accessible to the function. |
| 256 | pub fn create_global_value(&mut self, data: GlobalValueData) -> GlobalValue { |