This commit is contained in:
Folkert 2023-07-23 19:02:17 +02:00
parent f96c78b3a5
commit 10aa4f58c9
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 191 additions and 5 deletions

View file

@ -919,6 +919,12 @@ impl<
ASM::function_pointer(&mut self.buf, &mut self.relocs, fn_name, reg)
}
fn build_data_pointer(&mut self, dst: &Symbol, data_name: String) {
let reg = self.storage_manager.claim_general_reg(&mut self.buf, dst);
ASM::data_pointer(&mut self.buf, &mut self.relocs, data_name, reg)
}
fn build_fn_call(
&mut self,
dst: &Symbol,