mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 22:38:56 -04: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
12 lines
312 B
C
12 lines
312 B
C
// RUN: %clang %s -g -gcolumn-info -S -emit-llvm -o - | FileCheck %s
|
|
// Checks that clang emits column information when -gcolumn-info is passed.
|
|
|
|
int foo(int a, int b) { int c = a + b;
|
|
|
|
|
|
return c;
|
|
}
|
|
|
|
// Without column information we wouldn't change locations for b.
|
|
// CHECK: !DILocation(line: 4, column: 20,
|