summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/COFF/simple.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/DebugInfo/COFF/simple.ll')
-rw-r--r--llvm/test/DebugInfo/COFF/simple.ll96
1 files changed, 18 insertions, 78 deletions
diff --git a/llvm/test/DebugInfo/COFF/simple.ll b/llvm/test/DebugInfo/COFF/simple.ll
index ee154359cf8..7d31cca19e7 100644
--- a/llvm/test/DebugInfo/COFF/simple.ll
+++ b/llvm/test/DebugInfo/COFF/simple.ll
@@ -13,9 +13,10 @@
; X86-LABEL: _f:
; X86: # BB
-; X86-NEXT: [[CALL_LINE:^L.*]]:{{$}}
+; X86: .cv_file 1 "D:\\test.c"
+; X86: .cv_loc 0 1 4 2 is_stmt 0 # test.c:4:2
; X86: calll _g
-; X86-NEXT: [[RETURN_STMT:.*]]:
+; X86: .cv_loc 0 1 5 0 # test.c:5:0
; X86: ret
; X86-NEXT: [[END_OF_F:.*]]:
;
@@ -43,44 +44,15 @@
; Padding
; X86-NEXT: .zero 3
; Line table
-; X86-NEXT: .long 242
-; X86-NEXT: .long [[F2_END:.*]]-[[F2_START:.*]]
-; X86-NEXT: [[F2_START]]:
-; X86-NEXT: .secrel32 _f
-; X86-NEXT: .secidx _f
-; X86-NEXT: .short 1
-; X86-NEXT: .long [[END_OF_F]]-_f
-; X86-NEXT: [[FILE_SEGMENT_START:[^:]*]]:
-; X86-NEXT: .long 0
-; X86-NEXT: .long 2
-; X86-NEXT: .long [[FILE_SEGMENT_END:.*]]-[[FILE_SEGMENT_START]]
-; X86-NEXT: .long [[CALL_LINE]]-_f
-; X86-NEXT: .long -2147483644
-; X86-NEXT: .long [[RETURN_STMT]]-_f
-; X86-NEXT: .long -2147483643
-; X86-NEXT: .short 0
-; X86-NEXT: .short 0
-; X86-NEXT: .short 0
-; X86-NEXT: .short 0
-; X86-NEXT: [[FILE_SEGMENT_END]]:
-; X86-NEXT: [[F2_END]]:
+; X86-NEXT: .cv_linetable 0, _f, [[END_OF_F]]
; File index to string table offset subsection
-; X86-NEXT: .long 244
-; X86-NEXT: .long 8
-; X86-NEXT: .long 1
-; X86-NEXT: .long 0
+; X86-NEXT: .cv_filechecksums
; String table
-; X86-NEXT: .long 243
-; X86-NEXT: .long 11
-; X86-NEXT: .byte 0
-; X86-NEXT: .ascii "D:\\test.c"
-; X86-NEXT: .byte 0
-; Padding
-; X86-NEXT: .zero 1
+; X86-NEXT: .cv_stringtable
; OBJ32: Section {
; OBJ32: Name: .debug$S (2E 64 65 62 75 67 24 53)
-; OBJ32: Characteristics [ (0x42100040)
+; OBJ32: Characteristics [ (0x42300040)
; OBJ32: ]
; OBJ32: Relocations [
; OBJ32-NEXT: 0x2C IMAGE_REL_I386_SECREL _f
@@ -108,7 +80,7 @@
; OBJ32-NEXT: LineNumberStart: 4
; OBJ32-NEXT: LineNumberEndDelta: 0
; OBJ32-NEXT: IsStatement: Yes
-; OBJ32-NEXT: ColStart: 0
+; OBJ32-NEXT: ColStart: 2
; OBJ32-NEXT: ColEnd: 0
; OBJ32-NEXT: ]
; OBJ32-NEXT: +0x5 [
@@ -123,12 +95,13 @@
; X64-LABEL: f:
; X64-NEXT: .L{{.*}}:{{$}}
-; X64-NEXT: [[START:.*]]:{{$}}
+; X64: .cv_file 1 "D:\\test.c"
+; X64: .cv_loc 0 1 3 0 is_stmt 0 # test.c:3:0
; X64: # BB
; X64: subq $40, %rsp
-; X64-NEXT: [[CALL_LINE:.*]]:{{$}}
+; X64: .cv_loc 0 1 4 2 # test.c:4:2
; X64-NEXT: callq g
-; X64-NEXT: [[EPILOG_AND_RET:.*]]:
+; X64: .cv_loc 0 1 5 0 # test.c:5:0
; X64: addq $40, %rsp
; X64-NEXT: ret
; X64-NEXT: [[END_OF_F:.*]]:
@@ -157,48 +130,15 @@
; Padding
; X64-NEXT: .zero 3
; Line table
-; X64-NEXT: .long 242
-; X64-NEXT: .long [[F2_END:.*]]-[[F2_START:.*]]
-; X64-NEXT: [[F2_START]]:
-; X64-NEXT: .secrel32 f
-; X64-NEXT: .secidx f
-; X64-NEXT: .short 1
-; X64-NEXT: .long [[END_OF_F]]-f
-; X64-NEXT: [[FILE_SEGMENT_START:[^:]*]]:
-; X64-NEXT: .long 0
-; X64-NEXT: .long 3
-; X64-NEXT: .long [[FILE_SEGMENT_END:.*]]-[[FILE_SEGMENT_START]]
-; X64-NEXT: .long [[START]]-f
-; X64-NEXT: .long -2147483645
-; X64-NEXT: .long [[CALL_LINE]]-f
-; X64-NEXT: .long -2147483644
-; X64-NEXT: .long [[EPILOG_AND_RET]]-f
-; X64-NEXT: .long -2147483643
-; X64-NEXT: .short 0
-; X64-NEXT: .short 0
-; X64-NEXT: .short 0
-; X64-NEXT: .short 0
-; X64-NEXT: .short 0
-; X64-NEXT: .short 0
-; X64-NEXT: [[FILE_SEGMENT_END]]:
-; X64-NEXT: [[F2_END]]:
+; X64-NEXT: .cv_linetable 0, f, [[END_OF_F]]
; File index to string table offset subsection
-; X64-NEXT: .long 244
-; X64-NEXT: .long 8
-; X64-NEXT: .long 1
-; X64-NEXT: .long 0
+; X64-NEXT: .cv_filechecksums
; String table
-; X64-NEXT: .long 243
-; X64-NEXT: .long 11
-; X64-NEXT: .byte 0
-; X64-NEXT: .ascii "D:\\test.c"
-; X64-NEXT: .byte 0
-; Padding
-; X64-NEXT: .zero 1
+; X64-NEXT: .cv_stringtable
; OBJ64: Section {
; OBJ64: Name: .debug$S (2E 64 65 62 75 67 24 53)
-; OBJ64: Characteristics [ (0x42100040)
+; OBJ64: Characteristics [ (0x42300040)
; OBJ64: ]
; OBJ64: Relocations [
; OBJ64-NEXT: 0x2C IMAGE_REL_AMD64_SECREL f
@@ -233,7 +173,7 @@
; OBJ64-NEXT: LineNumberStart: 4
; OBJ64-NEXT: LineNumberEndDelta: 0
; OBJ64-NEXT: IsStatement: Yes
-; OBJ64-NEXT: ColStart: 0
+; OBJ64-NEXT: ColStart: 2
; OBJ64-NEXT: ColEnd: 0
; OBJ64-NEXT: ]
; OBJ64-NEXT: +0x9 [
@@ -274,5 +214,5 @@ attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "
!9 = !{i32 2, !"CodeView", i32 1}
!10 = !{i32 1, !"Debug Info Version", i32 3}
!11 = !{!"clang version 3.5 "}
-!12 = !DILocation(line: 4, scope: !4)
+!12 = !DILocation(line: 4, column: 2, scope: !4)
!13 = !DILocation(line: 5, scope: !4)
OpenPOWER on IntegriCloud