summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/attributes.ll
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-02-26 06:58:09 +0000
committerKostya Serebryany <kcc@google.com>2013-02-26 06:58:09 +0000
commitcf880b94434ddfcba2d5c7b0deb588591b0d8a08 (patch)
treea23d9b1988adc2fa2e0b4c98a21670c7ca929688 /llvm/test/Bitcode/attributes.ll
parentd9450f778ec4db7ba10698fcf335b361b736fa47 (diff)
downloadbcm5719-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/test/Bitcode/attributes.ll')
-rw-r--r--llvm/test/Bitcode/attributes.ll12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/Bitcode/attributes.ll b/llvm/test/Bitcode/attributes.ll
index 764dc3f6ea9..6c46e94012a 100644
--- a/llvm/test/Bitcode/attributes.ll
+++ b/llvm/test/Bitcode/attributes.ll
@@ -157,17 +157,17 @@ define void @f26() nonlazybind
ret void;
}
-define void @f27() address_safety
+define void @f27() sanitize_address
; CHECK: define void @f27() #17
{
ret void;
}
-define void @f28() thread_safety
+define void @f28() sanitize_thread
; CHECK: define void @f28() #18
{
ret void;
}
-define void @f29() uninitialized_checks
+define void @f29() sanitize_memory
; CHECK: define void @f29() #19
{
ret void;
@@ -196,7 +196,7 @@ define void @f30() "cpu"="cortex-a8"
; CHECK: attributes #14 = { returns_twice }
; CHECK: attributes #15 = { uwtable }
; CHECK: attributes #16 = { nonlazybind }
-; CHECK: attributes #17 = { address_safety }
-; CHECK: attributes #18 = { thread_safety }
-; CHECK: attributes #19 = { uninitialized_checks }
+; CHECK: attributes #17 = { sanitize_address }
+; CHECK: attributes #18 = { sanitize_thread }
+; CHECK: attributes #19 = { sanitize_memory }
; CHECK: attributes #20 = { "cpu"="cortex-a8" }
OpenPOWER on IntegriCloud