mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-18 06:10:37 +00:00

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
11 lines
280 B
C
11 lines
280 B
C
// 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();
|
|
}
|