diff options
author | Mitch Phillips <31459023+hctim@users.noreply.github.com> | 2022-06-10 12:24:36 -0700 |
---|---|---|
committer | Mitch Phillips <31459023+hctim@users.noreply.github.com> | 2022-06-10 12:28:18 -0700 |
commit | 8db981d463ee266919907f2554194d05f96f7191 (patch) | |
tree | 6459225d9ce90dcad0e74fa605ee240d53ec6f4f /llvm/lib/AsmParser/LLLexer.cpp | |
parent | 0bb317b7bff3d4f70bddd03a1f337c3f2a118943 (diff) | |
download | llvm-8db981d463ee266919907f2554194d05f96f7191.zip llvm-8db981d463ee266919907f2554194d05f96f7191.tar.gz llvm-8db981d463ee266919907f2554194d05f96f7191.tar.bz2 |
Add sanitizer-specific GlobalValue attributes.
Plan is the migrate the global variable metadata for sanitizers, that's
currently carried around generally in the 'llvm.asan.globals' section,
onto the global variable itself.
This patch adds the attribute and plumbs it through the LLVM IR and
bitcode formats, but is a no-op other than that so far.
Reviewed By: vitalybuka, kstoimenov
Differential Revision: https://reviews.llvm.org/D126100
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLLexer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp index f9c6d55..30e6f85 100644 --- a/llvm/lib/AsmParser/LLLexer.cpp +++ b/llvm/lib/AsmParser/LLLexer.cpp @@ -580,6 +580,11 @@ lltok::Kind LLLexer::LexIdentifier() { KEYWORD(prefix); KEYWORD(prologue); + KEYWORD(no_sanitize_address); + KEYWORD(no_sanitize_hwaddress); + KEYWORD(no_sanitize_memtag); + KEYWORD(sanitize_address_dyninit); + KEYWORD(ccc); KEYWORD(fastcc); KEYWORD(coldcc); |