add span to terminator
This commit is contained in:
parent
9130484db9
commit
999a354a81
2 changed files with 76 additions and 39 deletions
|
@ -21,7 +21,13 @@ pub struct BasicBlock {
|
|||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum Terminator {
|
||||
pub struct Terminator {
|
||||
pub kind: TerminatorKind,
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum TerminatorKind {
|
||||
Goto {
|
||||
target: usize,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue