Skip to content

Commit

Permalink
[DebugInfo] Fix tests missed by r362148
Browse files Browse the repository at this point in the history
llvm-svn: 361251
  • Loading branch information
pogo59 authored and MrSidims committed May 24, 2019
1 parent 6092239 commit a5e0596
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
10 changes: 5 additions & 5 deletions llvm/test/DebugInfo/X86/asm-macro-line-number.s
Expand Up @@ -18,17 +18,17 @@
function:
return 0

# CHECK: .file 2 "reduced.S"
# CHECK: .loc 2 8 0
# CHECK: .file 1 "reduced.S"
# CHECK: .loc 1 8 0
# CHECK: movl %eax, 0
# CHECK: .loc 2 8 0
# CHECK: .loc 1 8 0
# CHECK: retl

# 42 "reduced.S"
function2:
return2 0

# CHECK: .loc 2 43 0
# CHECK: .loc 1 43 0
# CHECK: movl %eax, 0
# CHECK: .loc 2 43 0
# CHECK: .loc 1 43 0
# CHECK: retl
14 changes: 5 additions & 9 deletions llvm/test/MC/MachO/gen-dwarf-cpp.s
Expand Up @@ -14,20 +14,16 @@ L1: leave
// rdar://9275556

// We check that the source name "t.s" is picked up
// CHECK: include_directories[ 1] = "{{.*(/|\\\\)}}test{{(/|\\\\)}}MC{{(/|\\\\)}}MachO"
// CHECK: include_directories[ 2] = "inc"
// CHECK: include_directories[ 1] = "inc"
// CHECK: file_names[ 1]:
// CHECK-NEXT: name: "gen-dwarf-cpp.s"
// CHECK-NEXT: dir_index: 1
// CHECK: file_names[ 2]:
// CHECK-NEXT: name: "t.s"
/ CHECK-NEXT: name: "t.s"
// CHECK-NEXT: dir_index: 0
// CHECK: file_names[ 3]:
// CHECK: file_names[ 2]:
// CHECK-NEXT: name: "g.s"
// CHECK-NEXT: dir_index: 2
// CHECK-NEXT: dir_index: 1
// CHECK-NOT: file_names

// We check that the source line number 100 is picked up before the "movl"
// CHECK: Address Line Column File ISA Discriminator Flags
// CHECK: ------------------ ------ ------ ------ --- ------------- -------------
// CHECK: 0x0000000000000000 102 0 2 0 0 is_stmt
// CHECK: 0x0000000000000000 102 0 1 0 0 is_stmt
3 changes: 0 additions & 3 deletions llvm/test/MC/MachO/gen-dwarf-macro-cpp.s
Expand Up @@ -12,8 +12,5 @@

// We check that the source name "foo.S" is picked up
// CHECK: file_names[ 1]:
// CHECK-NEXT: name: "gen-dwarf-macro-cpp.s"
// CHECK-NEXT: dir_index: 1
// CHECK: file_names[ 2]:
// CHECK-NEXT: name: "foo.S"
// CHECK-NEXT: dir_index: 0

0 comments on commit a5e0596

Please sign in to comment.