mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 23:56:05 +00:00

LLVM r236120 renamed debug info IR constructs to use a `DI` prefix, now that the `DIDescriptor` hierarchy has been gone for about a week. This commit was generated using the rename-md-di-nodes.sh upgrade script attached to PR23080, followed by running clang-format-diff.py on the `lib/` portion of the patch. llvm-svn: 236121
15 lines
640 B
C++
15 lines
640 B
C++
// RUN: %clang_cc1 -triple %itanium_abi_triple -g -mllvm -no-discriminators -emit-llvm %s -o - | FileCheck %s
|
|
|
|
struct C {
|
|
~C();
|
|
};
|
|
extern bool b;
|
|
// CHECK: call {{.*}}, !dbg [[DTOR_CALL1_LOC:![0-9]*]]
|
|
// CHECK: call {{.*}}, !dbg [[DTOR_CALL2_LOC:![0-9]*]]
|
|
// CHECK: [[FUN1:.*]] = !DISubprogram(name: "fun1",{{.*}} isDefinition: true
|
|
// CHECK: [[FUN2:.*]] = !DISubprogram(name: "fun2",{{.*}} isDefinition: true
|
|
// CHECK: [[DTOR_CALL1_LOC]] = !DILocation(line: [[@LINE+1]], scope: [[FUN1]])
|
|
void fun1() { b && (C(), 1); }
|
|
// CHECK: [[DTOR_CALL2_LOC]] = !DILocation(line: [[@LINE+1]], scope: [[FUN2]])
|
|
bool fun2() { return (C(), b) && 0; }
|