diff options
author | Kuba Mracek <mracek@apple.com> | 2016-11-23 02:07:04 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2016-11-23 02:07:04 +0000 |
commit | 06995e866be7d9f20ccf1522ed1006b7f19eb146 (patch) | |
tree | 79572b7352392c6d7ccae462a3a052c6ca591d84 /llvm/test/CodeGen/ARM | |
parent | 6aefe00ccf7f0f9de4718f71e180916689d0b65e (diff) | |
download | bcm5719-llvm-06995e866be7d9f20ccf1522ed1006b7f19eb146.tar.gz bcm5719-llvm-06995e866be7d9f20ccf1522ed1006b7f19eb146.zip |
[xray] Add XRay support for Mach-O in CodeGen
Currently, XRay only supports emitting the XRay table (xray_instr_map) on ELF binaries. Let's add Mach-O support.
Differential Revision: https://reviews.llvm.org/D26983
llvm-svn: 287734
Diffstat (limited to 'llvm/test/CodeGen/ARM')
3 files changed, 4 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/ARM/xray-armv6-attribute-instrumentation.ll b/llvm/test/CodeGen/ARM/xray-armv6-attribute-instrumentation.ll index c89c21e44a9..8a8c667b2d8 100644 --- a/llvm/test/CodeGen/ARM/xray-armv6-attribute-instrumentation.ll +++ b/llvm/test/CodeGen/ARM/xray-armv6-attribute-instrumentation.ll @@ -1,4 +1,5 @@ ; RUN: llc -filetype=asm -o - -mtriple=armv6-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -filetype=asm -o - -mtriple=armv6-apple-ios6.0.0 < %s | FileCheck %s define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" { ; CHECK-LABEL: Lxray_sled_0: diff --git a/llvm/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll b/llvm/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll index 842d9bc2a56..07852cd6879 100644 --- a/llvm/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll +++ b/llvm/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll @@ -1,4 +1,5 @@ ; RUN: llc -filetype=asm -o - -mtriple=armv7-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -filetype=asm -o - -mtriple=armv7-apple-ios6.0.0 < %s | FileCheck %s define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" { ; CHECK-LABEL: Lxray_sled_0: diff --git a/llvm/test/CodeGen/ARM/xray-tail-call-sled.ll b/llvm/test/CodeGen/ARM/xray-tail-call-sled.ll index d62a3b78662..f6769c04603 100644 --- a/llvm/test/CodeGen/ARM/xray-tail-call-sled.ll +++ b/llvm/test/CodeGen/ARM/xray-tail-call-sled.ll @@ -1,4 +1,5 @@ ; RUN: llc -filetype=asm -o - -mtriple=armv7-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -filetype=asm -o - -mtriple=armv7-apple-ios6.0.0 < %s | FileCheck %s define i32 @callee() nounwind noinline uwtable "function-instrument"="xray-always" { ; CHECK: .p2align 2 @@ -48,6 +49,6 @@ define i32 @caller() nounwind noinline uwtable "function-instrument"="xray-alway ; CHECK-NEXT: nop ; CHECK-LABEL: Ltmp3: %retval = tail call i32 @callee() -; CHECK: b callee +; CHECK: b {{.*}}callee ret i32 %retval } |