Commit aa9a09be authored by Duncan P. N. Exon Smith's avatar Duncan P. N. Exon Smith
Browse files

Merging r226049:

------------------------------------------------------------------------
r226049 | dexonsmith | 2015-01-14 14:28:03 -0800 (Wed, 14 Jan 2015) | 3 lines

IR: Move MDLocation into place (clang testcases)

Update testcases to match LLVM change in r226048.
------------------------------------------------------------------------

llvm-svn: 226093
parent 606bf753
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,5 +6,5 @@ void foo() {
  int p = 0;    // line #5: CHECK: {{call.*llvm.dbg.declare.*%p.*\!dbg }}[[variable_p:![0-9]+]]
}
// Now match the line number records:
// CHECK: {{^}}[[variable_l]]{{ = !{i32 5,}}
// CHECK: {{^}}[[variable_p]]{{ = !{i32 6,}}
// CHECK: {{^}}[[variable_l]] = !MDLocation(line: 5,
// CHECK: {{^}}[[variable_p]] = !MDLocation(line: 6,
+2 −2
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@

int main()
{
// CHECK: [[ASSIGNMENT]] = !{i32 [[@LINE+2]],
// CHECK: [[BLOCK_ENTRY]] = !{i32 [[@LINE+1]],
// CHECK: [[ASSIGNMENT]] = !MDLocation(line: [[@LINE+2]],
// CHECK: [[BLOCK_ENTRY]] = !MDLocation(line: [[@LINE+1]],
    int (^blockptr)(void) = ^(void) {
      return 0;
    };
+1 −1
Original line number Diff line number Diff line
@@ -13,4 +13,4 @@ void func(char c, char* d)
}

// CHECK: ret void, !dbg [[LINE:.*]]
// CHECK: [[LINE]] = !{i32 6,
// CHECK: [[LINE]] = !MDLocation(line: 6,
+1 −1
Original line number Diff line number Diff line
@@ -8,4 +8,4 @@ int foo(int a, int b) { int c = a + b;
}

// Without column information we wouldn't change locations for b.
// CHECK:  i32 4, i32 20,
// CHECK:  !MDLocation(line: 4, column: 20,
+2 −2
Original line number Diff line number Diff line
@@ -7,8 +7,8 @@
// CHECK: ret void, !dbg [[F2_LINE:![0-9]*]]
// CHECK: [[F1:![0-9]*]] = {{.*}} ; [ DW_TAG_subprogram ] {{.*}} [def] [f1]
// CHECK: [[F2:![0-9]*]] = {{.*}} ; [ DW_TAG_subprogram ] {{.*}} [def] [f2]
// CHECK: [[F1_LINE]] = {{.*}}, [[F1]], null}
// CHECK: [[F2_LINE]] = {{.*}}, [[F2]], null}
// CHECK: [[F1_LINE]] = !MDLocation({{.*}}, scope: [[F1]])
// CHECK: [[F2_LINE]] = !MDLocation({{.*}}, scope: [[F2]])

void f1() {
}
Loading