[PATCH] D23056: Adding test for DIMacro and DIMacroFile comparison implementation

Amjad Aboud via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 09:37:20 PDT 2016


aaboud added a comment.

The output after the fix appears as is in the "; CHECK" lines in the LIT tests.
And here is the output before:

  !llvm.dbg.cu = !{!0, !11}
  !llvm.ident = !{!16, !16}
  !llvm.module.flags = !{!17}
  
  !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 4.0.0 (trunk 276746)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, macros: !3)
  !1 = !DIFile(filename: "t.c", directory: "/")
  !2 = !{}
  !3 = !{!4, !5}
  !4 = !DIMacro(type: DW_MACINFO_undef, line: 1, name: "X")
  !5 = !DIMacroFile(line: 2, file: !6, nodes: !7)
  !6 = !DIFile(filename: "t.h", directory: "/")
  !7 = !{!8, !9}
  !8 = !DIMacro(type: DW_MACINFO_define, line: 3, name: "X", value: "5")
  !9 = !DIMacroFile(line: 4, file: !10)
  !10 = !DIFile(filename: "t2.h", directory: "/")
  !11 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 4.0.0 (trunk 276746)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, macros: !12)
  !12 = !{!4, !13}
  !13 = !DIMacroFile(line: 2, file: !6, nodes: !14)
  !14 = !{!8, !15}
  !15 = !DIMacroFile(line: 4, file: !10)
  !16 = !{!"clang version 4.0.0 (trunk 276746)"}
  !17 = !{i32 2, !"Debug Info Version", i32 3}


https://reviews.llvm.org/D23056





More information about the llvm-commits mailing list