Registers metadata in this `MachBuffer` about the `constants` provided. This will record the size/alignment of all constants which will prepare them for emission later on.
(&mut self, constants: &VCodeConstants)
| 658 | /// This will record the size/alignment of all constants which will prepare |
| 659 | /// them for emission later on. |
| 660 | pub fn register_constants(&mut self, constants: &VCodeConstants) { |
| 661 | for (c, val) in constants.iter() { |
| 662 | self.register_constant(&c, val); |
| 663 | } |
| 664 | } |
| 665 | |
| 666 | /// Similar to [`MachBuffer::register_constants`] but registers a |
| 667 | /// single constant metadata. This function is useful in |