[llvm] a761e81 - [DWARFYAML][test] Use 'CHECK-NEXT:' to make checkers stricter. NFC.
Xing GUO via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 18 05:20:07 PDT 2020
Author: Xing GUO
Date: 2020-09-18T20:19:33+08:00
New Revision: a761e81e2202e6d7ccdf07736942723c95614d7d
URL: https://github.com/llvm/llvm-project/commit/a761e81e2202e6d7ccdf07736942723c95614d7d
DIFF: https://github.com/llvm/llvm-project/commit/a761e81e2202e6d7ccdf07736942723c95614d7d.diff
LOG: [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
Added:
Modified:
llvm/test/ObjectYAML/MachO/DWARF-debug_line.yaml
llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml
Removed:
################################################################################
diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_line.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_line.yaml
index e583bcac91ca..6643e2d5f75a 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 42919a866bd5..47cadc7d9577 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
More information about the llvm-commits
mailing list