annotate clang/test/CodeGenObjCXX/debug-info-line.mm @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple x86_64-unknown-windows-gnu -fcxx-exceptions -fexceptions -debug-info-kind=line-tables-only -fblocks -emit-llvm %s -o - | FileCheck %s
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -triple x86_64-unknown-windows-gnu -fcxx-exceptions -fexceptions -debug-info-kind=line-directives-only -fblocks -emit-llvm %s -o - | FileCheck %s
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 void fn();
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 struct foo {
anatofuz
parents:
diff changeset
7 ~foo();
anatofuz
parents:
diff changeset
8 };
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 void f1() {
anatofuz
parents:
diff changeset
11 ^{
anatofuz
parents:
diff changeset
12 foo f;
anatofuz
parents:
diff changeset
13 fn();
anatofuz
parents:
diff changeset
14 // CHECK: cleanup, !dbg [[DBG_F1:![0-9]*]]
anatofuz
parents:
diff changeset
15 #line 100
anatofuz
parents:
diff changeset
16 }();
anatofuz
parents:
diff changeset
17 }
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 // CHECK-LABEL: define internal {{.*}}i8* @"\01-[TNSObject init]"
anatofuz
parents:
diff changeset
20 @implementation TNSObject
anatofuz
parents:
diff changeset
21 - (id)init
anatofuz
parents:
diff changeset
22 {
anatofuz
parents:
diff changeset
23 foo f;
anatofuz
parents:
diff changeset
24 fn();
anatofuz
parents:
diff changeset
25 // CHECK: cleanup, !dbg [[DBG_TNSO:![0-9]*]]
anatofuz
parents:
diff changeset
26 #line 200
anatofuz
parents:
diff changeset
27 }
anatofuz
parents:
diff changeset
28 @end
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 // CHECK: [[DBG_F1]] = !DILocation(line: 100,
anatofuz
parents:
diff changeset
31 // CHECK: [[DBG_TNSO]] = !DILocation(line: 200,