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

Summary: Added option -gline-directives-only to support emission of the debug directives only. It behaves very similar to -gline-tables-only, except that it sets llvm debug info emission kind to llvm::DICompileUnit::DebugDirectivesOnly. Reviewers: echristo Subscribers: aprantl, fedor.sergeev, JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D51177 llvm-svn: 341212
15 lines
487 B
C
15 lines
487 B
C
// RUN: %clang_cc1 -O1 -triple x86_64-none-linux-gnu -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -O1 -triple x86_64-none-linux-gnu -emit-llvm -debug-info-kind=line-directives-only %s -o - | FileCheck %s
|
|
|
|
// Inserting lifetime markers should not affect debuginfo
|
|
|
|
extern int x;
|
|
|
|
// CHECK-LABEL: define i32 @f
|
|
int f() {
|
|
int *p = &x;
|
|
// CHECK: ret i32 %{{.*}}, !dbg [[DI:![0-9]*]]
|
|
// CHECK: [[DI]] = !DILocation(line: [[@LINE+1]]
|
|
return *p;
|
|
}
|