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 | 8eec41fc778e99d42172a7f6de76faa43a6d8847 (patch) | |
tree | a6b89a9fb83eab1457104a996ea7798c9068ec10 /test/Instrumentation/AddressSanitizer/different_scale_and_offset.ll | |
parent | ce522ee0a27062390f13e7ccb53fcff4fc36c473 (diff) | |
download | llvm-8eec41fc778e99d42172a7f6de76faa43a6d8847.tar.gz llvm-8eec41fc778e99d42172a7f6de76faa43a6d8847.tar.bz2 llvm-8eec41fc778e99d42172a7f6de76faa43a6d8847.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Instrumentation/AddressSanitizer/different_scale_and_offset.ll')
-rw-r--r-- | test/Instrumentation/AddressSanitizer/different_scale_and_offset.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Instrumentation/AddressSanitizer/different_scale_and_offset.ll b/test/Instrumentation/AddressSanitizer/different_scale_and_offset.ll index c07069c2dc..b0371769be 100644 --- a/test/Instrumentation/AddressSanitizer/different_scale_and_offset.ll +++ b/test/Instrumentation/AddressSanitizer/different_scale_and_offset.ll @@ -9,7 +9,7 @@ target triple = "x86_64-unknown-linux-gnu" ; CHECK: @__asan_mapping_offset = linkonce_odr constant i64 0 ; CHECK: @__asan_mapping_scale = linkonce_odr constant i64 2 -define i32 @test_load(i32* %a) address_safety { +define i32 @test_load(i32* %a) sanitize_address { ; CHECK: @test_load ; CHECK-NOT: load ; CHECK: %[[LOAD_ADDR:[^ ]*]] = ptrtoint i32* %a to i64 |