diff options
author | Erich Keane <erich.keane@intel.com> | 2018-02-14 00:14:07 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2018-02-14 00:14:07 +0000 |
commit | 293a0556f3ca21bbf0a04ffb8db1534bc9d29dcc (patch) | |
tree | c0eedaedbc9fd735fb34e892c2d0245e2f7f1978 /clang/test/CodeGen/artificial.c | |
parent | 35fa7cdf5010f2fa0bd2766fe7248bebb04ed5f7 (diff) | |
download | bcm5719-llvm-293a0556f3ca21bbf0a04ffb8db1534bc9d29dcc.tar.gz bcm5719-llvm-293a0556f3ca21bbf0a04ffb8db1534bc9d29dcc.zip |
Implement function attribute artificial
Added support in clang for GCC function attribute 'artificial'. This attribute
is used to control stepping behavior of debugger with respect to inline
functions.
Patch By: Elizabeth Andrews (eandrews)
Differential Revision: https://reviews.llvm.org/D43259
llvm-svn: 325081
Diffstat (limited to 'clang/test/CodeGen/artificial.c')
-rw-r--r-- | clang/test/CodeGen/artificial.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/artificial.c b/clang/test/CodeGen/artificial.c new file mode 100644 index 00000000000..5db6a671945 --- /dev/null +++ b/clang/test/CodeGen/artificial.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple=x86_64-unknown-linux-gnu -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s + +extern void foo(); +// CHECK: !DISubprogram(name: "foo" +// CHECK-SAME: flags: DIFlagArtificial +inline void __attribute__((artificial)) foo() {} + +void baz() { + foo(); +} |