mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 14:05:49 -04:00

Attach a unique DISubprogram to a function declaration that will be used for call site debug info. ([7/13] Introduce the debug entry values.) Co-authored-by: Ananth Sowda <asowda@cisco.com> Co-authored-by: Nikola Prica <nikola.prica@rt-rk.com> Co-authored-by: Ivan Baev <ibaev@cisco.com> Differential Revision: https://reviews.llvm.org/D60714 llvm-svn: 364502
16 lines
423 B
C
16 lines
423 B
C
// RUN: %clang -Xclang -femit-debug-entry-values -g -O2 -target x86_64-none-linux-gnu -S -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-EXT
|
|
// CHECK-EXT: !DISubprogram(name: "fn1"
|
|
|
|
// RUN: %clang -g -O2 -target x86_64-none-linux-gnu -S -emit-llvm %s -o - | FileCheck %s
|
|
// CHECK-NOT: !DISubprogram(name: "fn1"
|
|
|
|
extern int fn1(int a, int b);
|
|
|
|
int fn2 () {
|
|
int x = 4, y = 5;
|
|
int res = fn1(x, y);
|
|
|
|
return res;
|
|
}
|
|
|