diff options
author | Reid Kleckner <rnk@google.com> | 2017-09-19 18:14:45 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-09-19 18:14:45 +0000 |
commit | 26fa1bf4da3cbae98251ebd2db2dcee37b89120c (patch) | |
tree | 47deee79482f2815bd404f2bdb9ac167a3b9cf36 /llvm/test/DebugInfo/COFF/simple.ll | |
parent | 0a84b1ac80469b1deb14e3fde332dceeb6f45ad1 (diff) | |
download | bcm5719-llvm-26fa1bf4da3cbae98251ebd2db2dcee37b89120c.tar.gz bcm5719-llvm-26fa1bf4da3cbae98251ebd2db2dcee37b89120c.zip |
Re-land "Fix Bug 30978 by emitting cv file checksums."
This reverts r313431 and brings back r313374 with a fix to write
checksums as binary data and not ASCII hex strings.
llvm-svn: 313657
Diffstat (limited to 'llvm/test/DebugInfo/COFF/simple.ll')
-rw-r--r-- | llvm/test/DebugInfo/COFF/simple.ll | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/llvm/test/DebugInfo/COFF/simple.ll b/llvm/test/DebugInfo/COFF/simple.ll index 50d121be694..71733d1844b 100644 --- a/llvm/test/DebugInfo/COFF/simple.ll +++ b/llvm/test/DebugInfo/COFF/simple.ll @@ -17,7 +17,7 @@ ; X86-LABEL: _f: ; X86: # BB -; X86: .cv_file 1 "D:\\test.c" +; X86: .cv_file 1 "D:\\test.c" "F310AB26998CA831CBDF169E4EECACFA" 1 ; X86: .cv_loc 0 1 4 2 is_stmt 0 # test.c:4:2 ; X86: calll _g ; X86: .cv_loc 0 1 5 0 # test.c:5:0 @@ -85,6 +85,16 @@ ; OBJ32-NEXT: ProcEnd { ; OBJ32: } ; OBJ32-NEXT: ] +; OBJ32: Subsection [ +; OBJ32: SubSectionType: FileChecksums (0xF4) +; OBJ32-NEXT: SubSectionSize: 0x18 +; OBJ32-NEXT: FileChecksum { +; OBJ32-NEXT: Filename: D:\test.c (0x1) +; OBJ32-NEXT: ChecksumSize: 0x10 +; OBJ32-NEXT: ChecksumKind: MD5 (0x1) +; OBJ32-NEXT: ChecksumBytes: (F3 10 AB 26 99 8C A8 31 CB DF 16 9E 4E EC AC FA) +; OBJ32-NEXT: } +; OBJ32-NEXT: ] ; OBJ32: FunctionLineTable [ ; OBJ32-NEXT: Name: _f ; OBJ32-NEXT: Flags: 0x1 @@ -110,7 +120,7 @@ ; X64-LABEL: f: ; X64-NEXT: .L{{.*}}:{{$}} -; X64: .cv_file 1 "D:\\test.c" +; X64: .cv_file 1 "D:\\test.c" "F310AB26998CA831CBDF169E4EECACFA" 1 ; X64: .cv_loc 0 1 3 0 is_stmt 0 # test.c:3:0 ; X64: # BB ; X64: subq $40, %rsp @@ -182,6 +192,16 @@ ; OBJ64-NEXT: ProcEnd { ; OBJ64: } ; OBJ64-NEXT: ] +; OBJ64: Subsection [ +; OBJ64: SubSectionType: FileChecksums (0xF4) +; OBJ64-NEXT: SubSectionSize: 0x18 +; OBJ64-NEXT: FileChecksum { +; OBJ64-NEXT: Filename: D:\test.c (0x1) +; OBJ64-NEXT: ChecksumSize: 0x10 +; OBJ64-NEXT: ChecksumKind: MD5 (0x1) +; OBJ64-NEXT: ChecksumBytes: (F3 10 AB 26 99 8C A8 31 CB DF 16 9E 4E EC AC FA) +; OBJ64-NEXT: } +; OBJ64-NEXT: ] ; OBJ64: FunctionLineTable [ ; OBJ64-NEXT: Name: f ; OBJ64-NEXT: Flags: 0x1 @@ -232,8 +252,8 @@ attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" " !1 = !DIFile(filename: "<unknown>", directory: "D:\5C") !2 = !{} !4 = distinct !DISubprogram(name: "f", line: 3, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 3, file: !5, scope: !6, type: !7, variables: !2) -!5 = !DIFile(filename: "test.c", directory: "D:\5C") -!6 = !DIFile(filename: "test.c", directory: "D:C") +!5 = !DIFile(filename: "test.c", directory: "D:\5C", checksumkind: CSK_MD5, checksum: "f310ab26998ca831cbdf169e4eecacfa") +!6 = !DIFile(filename: "test.c", directory: "D:C", checksumkind: CSK_MD5, checksum: "f310ab26998ca831cbdf169e4eecacfa") !7 = !DISubroutineType(types: !8) !8 = !{null} !9 = !{i32 2, !"CodeView", i32 1} |