aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xixanta/src/node.rs')
-rw-r--r--lib/xixanta/src/node.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/xixanta/src/node.rs b/lib/xixanta/src/node.rs
index 7a5cf3d..3803840 100644
--- a/lib/xixanta/src/node.rs
+++ b/lib/xixanta/src/node.rs
@@ -1,4 +1,5 @@
use std::fmt;
+use std::ops::Range;
/// Returns true if this String follows the naming
/// conventions as expected by the address sanitizer.
@@ -264,6 +265,7 @@ pub enum OperationType {
pub enum CommentType {
AsanReserveIdentifier(PString),
AsanReserve(usize),
+ AsanStack(Range<usize>),
AsanIgnore,
}
@@ -366,6 +368,7 @@ impl fmt::Display for NodeType {
NodeType::Comment(ct) => match ct {
CommentType::AsanReserveIdentifier(_) => write!(f, ";; asan:reserve"),
CommentType::AsanReserve(_) => write!(f, ";; asan:reserve"),
+ CommentType::AsanStack(_) => write!(f, ";; asan:stack"),
CommentType::AsanIgnore => write!(f, ";; asan:ignore"),
},
}