Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / xray-imbue-arg1.cpp
blob447ee49b8a9759b773559f126b34de51bf272f86
1 // RUN: echo "fun:*arg1*=arg1" >> %t.always-instrument
2 // RUN: echo "[always]" > %t.xray-attrlist
3 // RUN: echo "fun:*arg1*=arg1" >> %t.xray-attrlist
4 // RUN: %clang_cc1 -fxray-instrument -x c++ -std=c++11 \
5 // RUN: -fxray-always-instrument=%t.always-instrument -emit-llvm -o - %s \
6 // RUN: -triple x86_64-unknown-linux-gnu | FileCheck %s
7 // RUN: %clang_cc1 -fxray-instrument -x c++ -std=c++11 \
8 // RUN: -fxray-attr-list=%t.xray-attrlist -emit-llvm -o - %s \
9 // RUN: -triple x86_64-unknown-linux-gnu | FileCheck %s
11 void foo() {}
13 void arg1(void*) {}
15 // CHECK: define{{.*}} void @_Z3foov() #[[FOO:[0-9]+]] {
16 // CHECK: define{{.*}} void {{.*}}arg1{{.*}} #[[ALWAYSARG1:[0-9]+]] {
18 // CHECK: attributes #[[FOO]] = {{.*}}
19 // CHECK: attributes #[[ALWAYSARG1]] = {{.*}} "function-instrument"="xray-always" {{.*}} "xray-log-args"="1"