summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-blocks.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-08-31 13:56:14 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-08-31 13:56:14 +0000
commit80e1b5eb3486758ba67cf311e3afad7c1a56deda (patch)
tree5b3b926ae629eaca499ae915ee5e33ff5601803e /clang/test/CodeGenCXX/debug-info-blocks.cpp
parent2e5700f0388b4857e331d0ec5f887cddcc616d85 (diff)
downloadbcm5719-llvm-80e1b5eb3486758ba67cf311e3afad7c1a56deda.tar.gz
bcm5719-llvm-80e1b5eb3486758ba67cf311e3afad7c1a56deda.zip
[DEBUGINFO] Add support for emission of the debug directives only.
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
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-blocks.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-blocks.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-blocks.cpp b/clang/test/CodeGenCXX/debug-info-blocks.cpp
index ed0d659eeae..fd2f0c99e77 100644
--- a/clang/test/CodeGenCXX/debug-info-blocks.cpp
+++ b/clang/test/CodeGenCXX/debug-info-blocks.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 %s -debug-info-kind=line-tables-only -fblocks -S -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -debug-info-kind=line-directives-only -fblocks -S -emit-llvm -o - | FileCheck %s
struct A {
A();
@@ -11,8 +12,8 @@ void test() {
}
// CHECK: !DISubprogram(name: "__Block_byref_object_copy_",
-// CHECK-SAME: line: 10,
+// CHECK-SAME: line: 11,
// CHECK-SAME: isLocal: true, isDefinition: true
// CHECK: !DISubprogram(name: "__Block_byref_object_dispose_",
-// CHECK-SAME: line: 10,
+// CHECK-SAME: line: 11,
// CHECK-SAME: isLocal: true, isDefinition: true
OpenPOWER on IntegriCloud