Skip to content

Commit

Permalink
[XRay] ARM 32-bit no-Thumb support in Clang
Browse files Browse the repository at this point in the history
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:

https://reviews.llvm.org/D23931 (LLVM)
https://reviews.llvm.org/D23933 (compiler-rt)

Differential Revision: https://reviews.llvm.org/D23932

llvm-svn: 281879
  • Loading branch information
deanberris committed Sep 19, 2016
1 parent 4640154 commit eeee3b1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 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"

0 comments on commit eeee3b1

Please sign in to comment.