diff options
author | Xing GUO <higuoxing@gmail.com> | 2020-09-18 20:18:48 +0800 |
---|---|---|
committer | Xing GUO <higuoxing@gmail.com> | 2020-09-18 20:19:33 +0800 |
commit | a761e81e2202e6d7ccdf07736942723c95614d7d (patch) | |
tree | af06f2e8f48453eb4626139ccde07d8fa23c3497 /llvm/test/ObjectYAML | |
parent | 7c8bb409f31ebbe24ac978e123efcef961a58340 (diff) | |
download | llvm-a761e81e2202e6d7ccdf07736942723c95614d7d.zip llvm-a761e81e2202e6d7ccdf07736942723c95614d7d.tar.gz llvm-a761e81e2202e6d7ccdf07736942723c95614d7d.tar.bz2 |
[DWARFYAML][test] Use 'CHECK-NEXT:' to make checkers stricter. NFC.
This patch makes checkers stricter so that we are able to avoid
some potential problems earlier.
Reviewed By: jhenderson, MaskRay
Differential Revision: https://reviews.llvm.org/D87876
Diffstat (limited to 'llvm/test/ObjectYAML')
-rw-r--r-- | llvm/test/ObjectYAML/MachO/DWARF-debug_line.yaml | 80 | ||||
-rw-r--r-- | llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml | 40 |
2 files changed, 60 insertions, 60 deletions
diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_line.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_line.yaml index e583bca..6643e2d 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-debug_line.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-debug_line.yaml @@ -530,43 +530,43 @@ DWARF: Data: 11 ... -#CHECK: debug_line: -#CHECK: - Length: 65 -#CHECK: Version: 2 -#CHECK: PrologueLength: 36 -#CHECK: MinInstLength: 1 -#CHECK: DefaultIsStmt: 1 -#CHECK: LineBase: 251 -#CHECK: LineRange: 14 -#CHECK: OpcodeBase: 13 -#CHECK: StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ] -#CHECK: IncludeDirs: -#CHECK: Files: -#CHECK: - Name: hello_world.c -#CHECK: DirIdx: 0 -#CHECK: ModTime: 0 -#CHECK: Length: 0 -#CHECK: Opcodes: -#CHECK: - Opcode: DW_LNS_extended_op -#CHECK: ExtLen: 9 -#CHECK: SubOpcode: DW_LNE_set_address -#CHECK: Data: 4294971216 -#CHECK: - Opcode: 0x14 -#CHECK: Data: 0 -#CHECK: - Opcode: DW_LNS_set_column -#CHECK: Data: 3 -#CHECK: - Opcode: DW_LNS_set_prologue_end -#CHECK: Data: 0 -#CHECK: - Opcode: DW_LNS_const_add_pc -#CHECK: Data: 0 -#CHECK: - Opcode: 0xBB -#CHECK: Data: 0 -#CHECK: - Opcode: 0xBB -#CHECK: Data: 0 -#CHECK: - Opcode: DW_LNS_advance_pc -#CHECK: Data: 11 -#CHECK: - Opcode: DW_LNS_extended_op -#CHECK: ExtLen: 1 -#CHECK: SubOpcode: DW_LNE_end_sequence -#CHECK: Data: 0 -#CHECK: ... +# CHECK: debug_line: +# CHECK-NEXT: - Length: 65 +# CHECK-NEXT: Version: 2 +# CHECK-NEXT: PrologueLength: 36 +# CHECK-NEXT: MinInstLength: 1 +# CHECK-NEXT: DefaultIsStmt: 1 +# CHECK-NEXT: LineBase: 251 +# CHECK-NEXT: LineRange: 14 +# CHECK-NEXT: OpcodeBase: 13 +# CHECK-NEXT: StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ] +# CHECK-NEXT: IncludeDirs: +# CHECK-NEXT: Files: +# CHECK-NEXT: - Name: hello_world.c +# CHECK-NEXT: DirIdx: 0 +# CHECK-NEXT: ModTime: 0 +# CHECK-NEXT: Length: 0 +# CHECK-NEXT: Opcodes: +# CHECK-NEXT: - Opcode: DW_LNS_extended_op +# CHECK-NEXT: ExtLen: 9 +# CHECK-NEXT: SubOpcode: DW_LNE_set_address +# CHECK-NEXT: Data: 4294971216 +# CHECK-NEXT: - Opcode: 0x14 +# CHECK-NEXT: Data: 0 +# CHECK-NEXT: - Opcode: DW_LNS_set_column +# CHECK-NEXT: Data: 3 +# CHECK-NEXT: - Opcode: DW_LNS_set_prologue_end +# CHECK-NEXT: Data: 0 +# CHECK-NEXT: - Opcode: DW_LNS_const_add_pc +# CHECK-NEXT: Data: 0 +# CHECK-NEXT: - Opcode: 0xBB +# CHECK-NEXT: Data: 0 +# CHECK-NEXT: - Opcode: 0xBB +# CHECK-NEXT: Data: 0 +# CHECK-NEXT: - Opcode: DW_LNS_advance_pc +# CHECK-NEXT: Data: 11 +# CHECK-NEXT: - Opcode: DW_LNS_extended_op +# CHECK-NEXT: ExtLen: 1 +# CHECK-NEXT: SubOpcode: DW_LNE_end_sequence +# CHECK-NEXT: Data: 0 +# CHECK-NEXT: ... diff --git a/llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml b/llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml index 42919a8..47cadc7d 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml @@ -327,26 +327,26 @@ DWARF: Name: char ... -#CHECK: DWARF: -#CHECK: debug_pubnames: -#CHECK: Length: 0x0000000000000017 -#CHECK: Version: 2 -#CHECK: UnitOffset: 0 -#CHECK: UnitSize: 121 -#CHECK: Entries: -#CHECK: - DieOffset: 0x0000002A -#CHECK: Name: main -#CHECK: debug_pubtypes: -#CHECK: Length: 0x000000000000001F -#CHECK: Version: 2 -#CHECK: UnitOffset: 0 -#CHECK: UnitSize: 121 -#CHECK: Entries: -#CHECK: - DieOffset: 0x00000060 -#CHECK: Name: int -#CHECK: - DieOffset: 0x00000071 -#CHECK: Name: char -#CHECK: ... +# CHECK: DWARF: +# CHECK: debug_pubnames: +# CHECK-NEXT: Length: 0x0000000000000017 +# CHECK-NEXT: Version: 2 +# CHECK-NEXT: UnitOffset: 0 +# CHECK-NEXT: UnitSize: 121 +# CHECK-NEXT: Entries: +# CHECK-NEXT: - DieOffset: 0x0000002A +# CHECK-NEXT: Name: main +# CHECK-NEXT: debug_pubtypes: +# CHECK-NEXT: Length: 0x000000000000001F +# CHECK-NEXT: Version: 2 +# CHECK-NEXT: UnitOffset: 0 +# CHECK-NEXT: UnitSize: 121 +# CHECK-NEXT: Entries: +# CHECK-NEXT: - DieOffset: 0x00000060 +# CHECK-NEXT: Name: int +# CHECK-NEXT: - DieOffset: 0x00000071 +# CHECK-NEXT: Name: char +# CHECK-NEXT: ... ## b) Test that yaml2obj will not emit the .debug_pubnames/.debug_pubtypes section's ## contents, if the "debug_pubnames"/"debug_pubtypes" entry doesn't exist in the |