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
15 lines
474 B
C
15 lines
474 B
C
// RUN: %clang_cc1 %s -debug-info-kind=line-tables-only -S -emit-llvm -o - | FileCheck %s
|
|
// RUN: %clang_cc1 %s -debug-info-kind=line-directives-only -S -emit-llvm -o - | FileCheck %s
|
|
// Checks that clang with "-gline-tables-only" or "-gline-directives-only" emits metadata for
|
|
// compile unit, subprogram and file.
|
|
|
|
int main() {
|
|
// CHECK: ret i32 0, !dbg
|
|
return 0;
|
|
}
|
|
|
|
// CHECK: !llvm.dbg.cu = !{!0}
|
|
// CHECK: !DICompileUnit(
|
|
// CHECK: !DISubprogram(
|
|
// CHECK: !DIFile(
|