diff options
author | Dean Michael Berris <dberris@google.com> | 2016-09-08 00:23:28 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2016-09-08 00:23:28 +0000 |
commit | 6f2622e2537338c1c5a986fce8f59aa040f72838 (patch) | |
tree | c4d2ac220d8cdc777da2bae8e3533a8f6577b907 | |
parent | 17d94e279e43c02833628a455a97d78cd8aafb5e (diff) | |
download | bcm5719-llvm-6f2622e2537338c1c5a986fce8f59aa040f72838.tar.gz bcm5719-llvm-6f2622e2537338c1c5a986fce8f59aa040f72838.zip |
[XRay] ARM 32-bit no-Thumb support in Clang
Just a test for now, adapted from x86_64 tests of XRay.
This is one of 3 commits to different repositories of XRay ARM port. The
other 2 are:
1. https://reviews.llvm.org/D23931 (LLVM)
2. https://reviews.llvm.org/D23933 (compiler-rt)
Differential Review: https://reviews.llvm.org/D23932
llvm-svn: 280889
-rw-r--r-- | clang/test/CodeGen/xray-attributes-supported-arm.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGen/xray-attributes-supported-arm.cpp b/clang/test/CodeGen/xray-attributes-supported-arm.cpp new file mode 100644 index 00000000000..3104f285bfb --- /dev/null +++ b/clang/test/CodeGen/xray-attributes-supported-arm.cpp @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 %s -fxray-instrument -std=c++11 -x c++ -emit-llvm -o - -triple arm-unknown-linux-gnu | FileCheck %s + +// Make sure that the LLVM attribute for XRay-annotated functions do show up. +[[clang::xray_always_instrument]] void foo() { +// CHECK: define void @_Z3foov() #0 +}; + +[[clang::xray_never_instrument]] void bar() { +// CHECK: define void @_Z3barv() #1 +}; + +// CHECK: #0 = {{.*}}"function-instrument"="xray-always" +// CHECK: #1 = {{.*}}"function-instrument"="xray-never" |