mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 21:45:46 -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
13 lines
420 B
C
13 lines
420 B
C
// RUN: %clang_cc1 -w -debug-info-kind=line-tables-only -fexceptions -fcxx-exceptions -S -emit-llvm %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -w -debug-info-kind=line-directives-only -fexceptions -fcxx-exceptions -S -emit-llvm %s -o - | FileCheck %s
|
|
|
|
int f1(int a, int b) {
|
|
// CHECK: icmp {{.*}}, !dbg [[DBG_F1:!.*]]
|
|
#line 100
|
|
return a //
|
|
&& //
|
|
b;
|
|
}
|
|
|
|
// CHECK: [[DBG_F1]] = !DILocation(line: 100,
|