diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-09-02 16:40:38 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-09-02 16:40:38 +0200 |
| commit | 8e7993a63e32981757c4d65fe6519439dde97d8e (patch) | |
| tree | 082979ffe3d3b1880c02d3e56f2fd4a47b93094e /lib/xixanta/src/node.rs | |
| parent | fb2d20e715dd04d27c4873c4989202133783f161 (diff) | |
| download | tools.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.rs | 4 |
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"), }, } } |
