diff options
Diffstat (limited to 'test/DebugInfo/X86/debug-macro.ll')
-rw-r--r-- | test/DebugInfo/X86/debug-macro.ll | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/test/DebugInfo/X86/debug-macro.ll b/test/DebugInfo/X86/debug-macro.ll index 2b3adce4776e..a8b3d4b9b87e 100644 --- a/test/DebugInfo/X86/debug-macro.ll +++ b/test/DebugInfo/X86/debug-macro.ll @@ -1,40 +1,38 @@ -; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-dump=info - | FileCheck --check-prefix=CHECK-INFO %s -; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-dump=macro - | FileCheck --check-prefix=CHECK-MACRO %s -; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-dump=line - | FileCheck --check-prefix=CHECK-LINE %s +; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s -; CHECK-INFO: .debug_info contents: -; CHECK-INFO: DW_TAG_compile_unit -; CHECK-INFO-NOT: DW_TAG -; CHECK-INFO: DW_AT_name {{.*}}"debug-macro.cpp") -; CHECK-INFO: DW_AT_macro_info {{.*}}(0x00000000) -; CHECK-INFO: DW_TAG_compile_unit -; CHECK-INFO-NOT: DW_TAG -; CHECK-INFO: DW_AT_name {{.*}}"debug-macro1.cpp") -; CHECK-INFO: DW_AT_macro_info {{.*}}(0x00000044) -; CHECK-INFO: DW_TAG_compile_unit -; CHECK-INFO-NOT: DW_TAG -; CHECK-INFO: DW_AT_name {{.*}}"debug-macro2.cpp") -; CHECK-INFO-NOT: DW_AT_macro_info +; CHECK-LABEL: .debug_info contents: +; CHECK: DW_TAG_compile_unit +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_name {{.*}}"debug-macro.cpp") +; CHECK: DW_AT_macro_info {{.*}}(0x00000000) +; CHECK: DW_TAG_compile_unit +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_name {{.*}}"debug-macro1.cpp") +; CHECK: DW_AT_macro_info {{.*}}(0x00000044) +; CHECK: DW_TAG_compile_unit +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_name {{.*}}"debug-macro2.cpp") +; CHECK-NOT: DW_AT_macro_info -; CHECK-MACRO: .debug_macinfo contents: -; CHECK-MACRO-NEXT: DW_MACINFO_define - lineno: 0 macro: NameCMD ValueCMD -; CHECK-MACRO-NEXT: DW_MACINFO_start_file - lineno: 0 filenum: 1 -; CHECK-MACRO-NEXT: DW_MACINFO_start_file - lineno: 9 filenum: 2 -; CHECK-MACRO-NEXT: DW_MACINFO_define - lineno: 1 macro: NameDef Value -; CHECK-MACRO-NEXT: DW_MACINFO_undef - lineno: 11 macro: NameUndef -; CHECK-MACRO-NEXT: DW_MACINFO_end_file -; CHECK-MACRO-NEXT: DW_MACINFO_undef - lineno: 10 macro: NameUndef2 -; CHECK-MACRO-NEXT: DW_MACINFO_end_file -; CHECK-MACRO-NEXT: DW_MACINFO_start_file - lineno: 0 filenum: 1 -; CHECK-MACRO-NEXT: DW_MACINFO_end_file +; CHECK-LABEL: .debug_macinfo contents: +; CHECK-NEXT: DW_MACINFO_define - lineno: 0 macro: NameCMD ValueCMD +; CHECK-NEXT: DW_MACINFO_start_file - lineno: 0 filenum: 1 +; CHECK-NEXT: DW_MACINFO_start_file - lineno: 9 filenum: 2 +; CHECK-NEXT: DW_MACINFO_define - lineno: 1 macro: NameDef Value +; CHECK-NEXT: DW_MACINFO_undef - lineno: 11 macro: NameUndef +; CHECK-NEXT: DW_MACINFO_end_file +; CHECK-NEXT: DW_MACINFO_undef - lineno: 10 macro: NameUndef2 +; CHECK-NEXT: DW_MACINFO_end_file +; CHECK-NEXT: DW_MACINFO_start_file - lineno: 0 filenum: 1 +; CHECK-NEXT: DW_MACINFO_end_file -; CHECK-LINE: .debug_line contents: -; CHECK-LINE: Dir Mod Time File Len File Name -; CHECK-LINE: file_names[ 1] {{.*}}debug-macro.cpp -; CHECK-LINE: file_names[ 2] {{.*}}debug-macro.h -; CHECK-LINE: Dir Mod Time File Len File Name -; CHECK-LINE: file_names[ 1] {{.*}}debug-macro1.cpp +; CHECK-LABEL: .debug_line contents: +; CHECK: Dir Mod Time File Len File Name +; CHECK: file_names[ 1] {{.*}}debug-macro.cpp +; CHECK: file_names[ 2] {{.*}}debug-macro.h +; CHECK: Dir Mod Time File Len File Name +; CHECK: file_names[ 1] {{.*}}debug-macro1.cpp !llvm.dbg.cu = !{!0, !16, !20} !llvm.module.flags = !{!13, !14} @@ -58,10 +56,14 @@ !14 = !{i32 1, !"Debug Info Version", i32 3} !15 = !{!"clang version 3.5.0 "} -!16 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5.0 ", isOptimized: false, emissionKind: FullDebug, file: !17, enums: !2, retainedTypes: !2, globals: !2, imports: !2, macros: !18) +!16 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5.0 ", isOptimized: false, emissionKind: FullDebug, file: !17, enums: !2, retainedTypes: !22, globals: !2, imports: !2, macros: !18) !17 = !DIFile(filename: "debug-macro1.cpp", directory: "/") !18 = !{!19} !19 = !DIMacroFile(line: 0, file: !17, nodes: !2) -!20 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5.0 ", isOptimized: false, emissionKind: FullDebug, file: !21, enums: !2, retainedTypes: !2, globals: !2, imports: !2) +!20 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5.0 ", isOptimized: false, emissionKind: FullDebug, file: !21, enums: !2, retainedTypes: !24, globals: !2, imports: !2) !21 = !DIFile(filename: "debug-macro2.cpp", directory: "/") +!22 = !{!23} +!23 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) +!24 = !{!25} +!25 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float) |