summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vlad@tsyrklevich.net>2018-04-03 20:10:40 +0000
committerVlad Tsyrklevich <vlad@tsyrklevich.net>2018-04-03 20:10:40 +0000
commitd17f61ea3bf5432dff6497ee5c1b85879e501da2 (patch)
tree040a519e5c9671c1e20d8e4d4aa64c635bd02073 /llvm/test/Bitcode
parentc6bf37d56d73d8ab1c1da86ce4cfd21afb0ab43a (diff)
downloadbcm5719-llvm-d17f61ea3bf5432dff6497ee5c1b85879e501da2.tar.gz
bcm5719-llvm-d17f61ea3bf5432dff6497ee5c1b85879e501da2.zip
Add the ShadowCallStack attribute
Summary: Introduce the ShadowCallStack function attribute. It's added to functions compiled with -fsanitize=shadow-call-stack in order to mark functions to be instrumented by a ShadowCallStack pass to be submitted in a separate change. Reviewers: pcc, kcc, kubamracek Reviewed By: pcc, kcc Subscribers: cryptoad, mehdi_amini, javed.absar, llvm-commits, kcc Differential Revision: https://reviews.llvm.org/D44800 llvm-svn: 329108
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/attributes.ll11
1 files changed, 9 insertions, 2 deletions
diff --git a/llvm/test/Bitcode/attributes.ll b/llvm/test/Bitcode/attributes.ll
index 8c74b3fb36b..de3cf8dd4d7 100644
--- a/llvm/test/Bitcode/attributes.ll
+++ b/llvm/test/Bitcode/attributes.ll
@@ -204,7 +204,7 @@ define void @f34()
; CHECK: define void @f34()
{
call void @nobuiltin() nobuiltin
-; CHECK: call void @nobuiltin() #35
+; CHECK: call void @nobuiltin() #36
ret void;
}
@@ -345,6 +345,12 @@ define void @f58() sanitize_hwaddress
ret void;
}
+; CHECK: define void @f59() #35
+define void @f59() shadowcallstack
+{
+ ret void
+}
+
; CHECK: attributes #0 = { noreturn }
; CHECK: attributes #1 = { nounwind }
; CHECK: attributes #2 = { readnone }
@@ -380,4 +386,5 @@ define void @f58() sanitize_hwaddress
; CHECK: attributes #32 = { writeonly }
; CHECK: attributes #33 = { speculatable }
; CHECK: attributes #34 = { sanitize_hwaddress }
-; CHECK: attributes #35 = { nobuiltin }
+; CHECK: attributes #35 = { shadowcallstack }
+; CHECK: attributes #36 = { nobuiltin }
OpenPOWER on IntegriCloud