aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/node.rs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-09-02 16:40:38 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-09-02 16:40:38 +0200
commit8e7993a63e32981757c4d65fe6519439dde97d8e (patch)
tree082979ffe3d3b1880c02d3e56f2fd4a47b93094e /lib/xixanta/src/node.rs
parentfb2d20e715dd04d27c4873c4989202133783f161 (diff)
downloadtools.nes-8e7993a63e32981757c4d65fe6519439dde97d8e.tar.gz
tools.nes-8e7993a63e32981757c4d65fe6519439dde97d8e.zip
assembler: Add support for asan:reserve,ignore
This is the initial support for both directives for the address sanitizer. Note that asan:weak has been moved into asan:ignore, which is not exactly the same but for now it should suffice. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src/node.rs')
-rw-r--r--lib/xixanta/src/node.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xixanta/src/node.rs b/lib/xixanta/src/node.rs
index 4281c4a..7cfc107 100644
--- a/lib/xixanta/src/node.rs
+++ b/lib/xixanta/src/node.rs
@@ -252,7 +252,7 @@ pub enum OperationType {
#[derive(Debug, Clone, PartialEq)]
pub enum CommentType {
AsanReserve(u8),
- AsanWeak,
+ AsanIgnore,
}
/// The PNode type.
@@ -349,7 +349,7 @@ impl fmt::Display for NodeType {
},
NodeType::Comment(ct) => match ct {
CommentType::AsanReserve(_) => write!(f, ";; asan:reserve"),
- CommentType::AsanWeak => write!(f, ";; asan:weak"),
+ CommentType::AsanIgnore => write!(f, ";; asan:ignore"),
},
}
}