If available, return information about the code layout in the final machine code: the offsets (in bytes) of each basic-block start, and all basic-block edges.
(&self)
| 732 | /// final machine code: the offsets (in bytes) of each basic-block |
| 733 | /// start, and all basic-block edges. |
| 734 | pub fn get_code_bb_layout(&self) -> (Vec<usize>, Vec<(usize, usize)>) { |
| 735 | ( |
| 736 | self.bb_starts.iter().map(|&off| off as usize).collect(), |
| 737 | self.bb_edges |
| 738 | .iter() |
| 739 | .map(|&(from, to)| (from as usize, to as usize)) |
| 740 | .collect(), |
| 741 | ) |
| 742 | } |
| 743 | |
| 744 | /// Creates unwind information for the function. |
| 745 | /// |