diff options
author | Kostya Serebryany <kcc@google.com> | 2013-02-26 06:58:09 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-02-26 06:58:09 +0000 |
commit | cf880b94434ddfcba2d5c7b0deb588591b0d8a08 (patch) | |
tree | a23d9b1988adc2fa2e0b4c98a21670c7ca929688 /llvm/utils/llvm.grm | |
parent | d9450f778ec4db7ba10698fcf335b361b736fa47 (diff) | |
download | bcm5719-llvm-cf880b94434ddfcba2d5c7b0deb588591b0d8a08.tar.gz bcm5719-llvm-cf880b94434ddfcba2d5c7b0deb588591b0d8a08.zip |
Unify clang/llvm attributes for asan/tsan/msan (LLVM part)
These are two related changes (one in llvm, one in clang).
LLVM:
- rename address_safety => sanitize_address (the enum value is the same, so we preserve binary compatibility with old bitcode)
- rename thread_safety => sanitize_thread
- rename no_uninitialized_checks -> sanitize_memory
CLANG:
- add __attribute__((no_sanitize_address)) as a synonym for __attribute__((no_address_safety_analysis))
- add __attribute__((no_sanitize_thread))
- add __attribute__((no_sanitize_memory))
for S in address thread memory
If -fsanitize=S is present and __attribute__((no_sanitize_S)) is not
set llvm attribute sanitize_S
llvm-svn: 176075
Diffstat (limited to 'llvm/utils/llvm.grm')
-rw-r--r-- | llvm/utils/llvm.grm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/llvm.grm b/llvm/utils/llvm.grm index c550434054f..d65f075076c 100644 --- a/llvm/utils/llvm.grm +++ b/llvm/utils/llvm.grm @@ -174,9 +174,9 @@ FuncAttr ::= noreturn | sspreq | returns_twice | nonlazybind - | address_safety - | thread_safety - | uninitialized_checks + | sanitize_address + | sanitize_thread + | sanitize_memory ; OptFuncAttrs ::= + _ | OptFuncAttrs FuncAttr ; |