(&self)
| 25 | /// and no assembly text; the encoder attributes following instructions to it. |
| 26 | SourceLoc { file: String, line: u32 }, |
| 27 | } |
| 28 | |
| 29 | impl RvInstruction { |
| 30 | /// Returns `true` if this line contributes machine code bytes. |
| 31 | pub fn is_code(&self) -> bool { |
| 32 | matches!(self, Self::Real(_) | Self::Pseudo(_)) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | /// Parse raw assembly text into labels/directives/instruction lines. With `file` |