diff options
author | Georgii Rymar <grimar@accesssoftek.com> | 2020-11-06 13:39:55 +0300 |
---|---|---|
committer | Georgii Rymar <grimar@accesssoftek.com> | 2020-11-18 11:31:00 +0300 |
commit | 65fd17c241e22e1671e81efdb683687369c2feb3 (patch) | |
tree | 35b2b8a7ecd72cc4cb8d7254410a5a3f1ca313c8 /llvm/test/ObjectYAML | |
parent | 955341a722a0a204c79f6b948e4fe0f23bb56e30 (diff) | |
download | llvm-65fd17c241e22e1671e81efdb683687369c2feb3.zip llvm-65fd17c241e22e1671e81efdb683687369c2feb3.tar.gz llvm-65fd17c241e22e1671e81efdb683687369c2feb3.tar.bz2 |
[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types.
When we produce an YAML output, we also print leading zeroes currently.
An output might look like this:
```
- Name: .dynsym
Type: SHT_DYNSYM
Address: 0x0000000000001000
EntSize: 0x0000000000000018
```
There are probably no reason to print leading zeroes.
It just makes harder to read values. This patch stops printing them.
The output becomes like:
```
- Name: .dynsym
Type: SHT_DYNSYM
Address: 0x1000
EntSize: 0x18
```
This affects obj2yaml mostly, but also dsymutil and llvm-xray tools output.
Differential revision: https://reviews.llvm.org/D90930
Diffstat (limited to 'llvm/test/ObjectYAML')
49 files changed, 638 insertions, 638 deletions
diff --git a/llvm/test/ObjectYAML/MachO/BigEndian.yaml b/llvm/test/ObjectYAML/MachO/BigEndian.yaml index 584cd47..56efc82 100644 --- a/llvm/test/ObjectYAML/MachO/BigEndian.yaml +++ b/llvm/test/ObjectYAML/MachO/BigEndian.yaml @@ -91,9 +91,9 @@ LinkEditData: #CHECK: FileHeader: #CHECK: magic: 0xFEEDFACE -#CHECK: cputype: 0x00000012 -#CHECK: cpusubtype: 0x00000000 -#CHECK: filetype: 0x00000001 +#CHECK: cputype: 0x12 +#CHECK: cpusubtype: 0x0 +#CHECK: filetype: 0x1 #CHECK: ncmds: 3 #CHECK: sizeofcmds: 368 -#CHECK: flags: 0x00002000 +#CHECK: flags: 0x2000 diff --git a/llvm/test/ObjectYAML/MachO/DWARF-BigEndian.yaml b/llvm/test/ObjectYAML/MachO/DWARF-BigEndian.yaml index e80c694..886597a 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-BigEndian.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-BigEndian.yaml @@ -387,7 +387,7 @@ DWARF: #CHECK: - N #CHECK: - t #CHECK: debug_abbrev: -#CHECK: - Code: 0x0000000000000001 +#CHECK: - Code: 0x1 #CHECK: Tag: DW_TAG_compile_unit #CHECK: Children: DW_CHILDREN_yes #CHECK: Attributes: @@ -405,7 +405,7 @@ DWARF: #CHECK: Form: DW_FORM_addr #CHECK: - Attribute: DW_AT_high_pc #CHECK: Form: DW_FORM_data4 -#CHECK: - Code: 0x0000000000000002 +#CHECK: - Code: 0x2 #CHECK: Tag: DW_TAG_base_type #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: @@ -415,7 +415,7 @@ DWARF: #CHECK: Form: DW_FORM_data1 #CHECK: - Attribute: DW_AT_byte_size #CHECK: Form: DW_FORM_data1 -#CHECK: - Code: 0x0000000000000003 +#CHECK: - Code: 0x3 #CHECK: Tag: DW_TAG_typedef #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: @@ -427,7 +427,7 @@ DWARF: #CHECK: Form: DW_FORM_data1 #CHECK: - Attribute: DW_AT_decl_line #CHECK: Form: DW_FORM_data1 -#CHECK: - Code: 0x0000000000000004 +#CHECK: - Code: 0x4 #CHECK: Tag: DW_TAG_subprogram #CHECK: Children: DW_CHILDREN_yes #CHECK: Attributes: @@ -449,7 +449,7 @@ DWARF: #CHECK: Form: DW_FORM_ref4 #CHECK: - Attribute: DW_AT_external #CHECK: Form: DW_FORM_flag_present -#CHECK: - Code: 0x0000000000000005 +#CHECK: - Code: 0x5 #CHECK: Tag: DW_TAG_formal_parameter #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: @@ -463,7 +463,7 @@ DWARF: #CHECK: Form: DW_FORM_data1 #CHECK: - Attribute: DW_AT_type #CHECK: Form: DW_FORM_ref4 -#CHECK: - Code: 0x0000000000000006 +#CHECK: - Code: 0x6 #CHECK: Tag: DW_TAG_variable #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: @@ -477,7 +477,7 @@ DWARF: #CHECK: Form: DW_FORM_data1 #CHECK: - Attribute: DW_AT_type #CHECK: Form: DW_FORM_ref4 -#CHECK: - Code: 0x0000000000000007 +#CHECK: - Code: 0x7 #CHECK: Tag: DW_TAG_const_type #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: diff --git a/llvm/test/ObjectYAML/MachO/DWARF-LittleEndian.yaml b/llvm/test/ObjectYAML/MachO/DWARF-LittleEndian.yaml index d85c23d..12bf9e7 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-LittleEndian.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-LittleEndian.yaml @@ -376,7 +376,7 @@ DWARF: #CHECK: - N #CHECK: - t #CHECK: debug_abbrev: -#CHECK: - Code: 0x0000000000000001 +#CHECK: - Code: 0x1 #CHECK: Tag: DW_TAG_compile_unit #CHECK: Children: DW_CHILDREN_yes #CHECK: Attributes: @@ -394,7 +394,7 @@ DWARF: #CHECK: Form: DW_FORM_addr #CHECK: - Attribute: DW_AT_high_pc #CHECK: Form: DW_FORM_data4 -#CHECK: - Code: 0x0000000000000002 +#CHECK: - Code: 0x2 #CHECK: Tag: DW_TAG_base_type #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: @@ -404,7 +404,7 @@ DWARF: #CHECK: Form: DW_FORM_data1 #CHECK: - Attribute: DW_AT_byte_size #CHECK: Form: DW_FORM_data1 -#CHECK: - Code: 0x0000000000000003 +#CHECK: - Code: 0x3 #CHECK: Tag: DW_TAG_typedef #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: @@ -416,7 +416,7 @@ DWARF: #CHECK: Form: DW_FORM_data1 #CHECK: - Attribute: DW_AT_decl_line #CHECK: Form: DW_FORM_data1 -#CHECK: - Code: 0x0000000000000004 +#CHECK: - Code: 0x4 #CHECK: Tag: DW_TAG_subprogram #CHECK: Children: DW_CHILDREN_yes #CHECK: Attributes: @@ -438,7 +438,7 @@ DWARF: #CHECK: Form: DW_FORM_ref4 #CHECK: - Attribute: DW_AT_external #CHECK: Form: DW_FORM_flag_present -#CHECK: - Code: 0x0000000000000005 +#CHECK: - Code: 0x5 #CHECK: Tag: DW_TAG_formal_parameter #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: @@ -452,7 +452,7 @@ DWARF: #CHECK: Form: DW_FORM_data1 #CHECK: - Attribute: DW_AT_type #CHECK: Form: DW_FORM_ref4 -#CHECK: - Code: 0x0000000000000006 +#CHECK: - Code: 0x6 #CHECK: Tag: DW_TAG_variable #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: @@ -466,7 +466,7 @@ DWARF: #CHECK: Form: DW_FORM_data1 #CHECK: - Attribute: DW_AT_type #CHECK: Form: DW_FORM_ref4 -#CHECK: - Code: 0x0000000000000007 +#CHECK: - Code: 0x7 #CHECK: Tag: DW_TAG_const_type #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml index 91af7bdf..bbadd47 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml @@ -353,7 +353,7 @@ DWARF: #CHECK: DWARF: #CHECK: debug_abbrev: -#CHECK: - Code: 0x0000000000000001 +#CHECK: - Code: 0x1 #CHECK: Tag: DW_TAG_compile_unit #CHECK: Children: DW_CHILDREN_yes #CHECK: Attributes: @@ -371,7 +371,7 @@ DWARF: #CHECK: Form: DW_FORM_addr #CHECK: - Attribute: DW_AT_high_pc #CHECK: Form: DW_FORM_data4 -#CHECK: - Code: 0x0000000000000002 +#CHECK: - Code: 0x2 #CHECK: Tag: DW_TAG_subprogram #CHECK: Children: DW_CHILDREN_yes #CHECK: Attributes: @@ -393,7 +393,7 @@ DWARF: #CHECK: Form: DW_FORM_ref4 #CHECK: - Attribute: DW_AT_external #CHECK: Form: DW_FORM_flag_present -#CHECK: - Code: 0x0000000000000003 +#CHECK: - Code: 0x3 #CHECK: Tag: DW_TAG_formal_parameter #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: @@ -407,7 +407,7 @@ DWARF: #CHECK: Form: DW_FORM_data1 #CHECK: - Attribute: DW_AT_type #CHECK: Form: DW_FORM_ref4 -#CHECK: - Code: 0x0000000000000004 +#CHECK: - Code: 0x4 #CHECK: Tag: DW_TAG_base_type #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: @@ -417,7 +417,7 @@ DWARF: #CHECK: Form: DW_FORM_data1 #CHECK: - Attribute: DW_AT_byte_size #CHECK: Form: DW_FORM_data1 -#CHECK: - Code: 0x0000000000000005 +#CHECK: - Code: 0x5 #CHECK: Tag: DW_TAG_pointer_type #CHECK: Children: DW_CHILDREN_no #CHECK: Attributes: diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml index 762fcbf..f362b44 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml @@ -327,13 +327,13 @@ DWARF: ... # CHECK: debug_aranges: -# CHECK-NEXT: - Length: 0x000000000000002C +# CHECK-NEXT: - Length: 0x2C # CHECK-NEXT: Version: 2 -# CHECK-NEXT: CuOffset: 0x0000000000000000 -# CHECK-NEXT: AddressSize: 0x08 +# CHECK-NEXT: CuOffset: 0x0 +# CHECK-NEXT: AddressSize: 0x8 # CHECK-NEXT: Descriptors: -# CHECK-NEXT: - Address: 0x0000000100000F50 -# CHECK-NEXT: Length: 0x0000000000000034 +# CHECK-NEXT: - Address: 0x100000F50 +# CHECK-NEXT: Length: 0x34 ## b) Test that if the "debug_aranges" entry is empty, yaml2macho will only emit the ## section header. diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml index 9dba060..f3124e5 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml @@ -511,67 +511,67 @@ DWARF: # DWARF32: DWARF: # DWARF32: debug_info: -# DWARF32-NEXT: - Length: 0x0000000000000075 +# DWARF32-NEXT: - Length: 0x75 # DWARF32-NEXT: Version: 4 # DWARF32-NEXT: AbbrevTableID: 0 # DWARF32-NEXT: AbbrOffset: 0 # DWARF32-NEXT: AddrSize: 8 # DWARF32-NEXT: Entries: -# DWARF32-NEXT: - AbbrCode: 0x00000001 +# DWARF32-NEXT: - AbbrCode: 0x1 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - Value: 0x000000000000000C -# DWARF32-NEXT: - Value: 0x0000000000000038 -# DWARF32-NEXT: - Value: 0x0000000000000000 -# DWARF32-NEXT: - Value: 0x0000000000000046 -# DWARF32-NEXT: - Value: 0x0000000100000F50 -# DWARF32-NEXT: - Value: 0x0000000000000034 -# DWARF32-NEXT: - AbbrCode: 0x00000002 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - Value: 0xC +# DWARF32-NEXT: - Value: 0x38 +# DWARF32-NEXT: - Value: 0x0 +# DWARF32-NEXT: - Value: 0x46 +# DWARF32-NEXT: - Value: 0x100000F50 +# DWARF32-NEXT: - Value: 0x34 +# DWARF32-NEXT: - AbbrCode: 0x2 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000100000F50 -# DWARF32-NEXT: - Value: 0x0000000000000034 -# DWARF32-NEXT: - Value: 0x0000000000000001 +# DWARF32-NEXT: - Value: 0x100000F50 +# DWARF32-NEXT: - Value: 0x34 +# DWARF32-NEXT: - Value: 0x1 # DWARF32-NEXT: BlockData: [ 0x56 ] -# DWARF32-NEXT: - Value: 0x0000000000000076 -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - Value: 0x0000000000000003 -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - Value: 0x0000000000000060 -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - AbbrCode: 0x00000003 +# DWARF32-NEXT: - Value: 0x76 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - Value: 0x3 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - Value: 0x60 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - AbbrCode: 0x3 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000002 +# DWARF32-NEXT: - Value: 0x2 # DWARF32-NEXT: BlockData: [ 0x91, 0x78 ] -# DWARF32-NEXT: - Value: 0x000000000000007B -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - Value: 0x0000000000000003 -# DWARF32-NEXT: - Value: 0x0000000000000060 -# DWARF32-NEXT: - AbbrCode: 0x00000003 +# DWARF32-NEXT: - Value: 0x7B +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - Value: 0x3 +# DWARF32-NEXT: - Value: 0x60 +# DWARF32-NEXT: - AbbrCode: 0x3 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000002 +# DWARF32-NEXT: - Value: 0x2 # DWARF32-NEXT: BlockData: [ 0x91, 0x70 ] -# DWARF32-NEXT: - Value: 0x0000000000000080 -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - Value: 0x0000000000000003 -# DWARF32-NEXT: - Value: 0x0000000000000067 -# DWARF32-NEXT: - AbbrCode: 0x00000000 -# DWARF32-NEXT: - AbbrCode: 0x00000004 +# DWARF32-NEXT: - Value: 0x80 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - Value: 0x3 +# DWARF32-NEXT: - Value: 0x67 +# DWARF32-NEXT: - AbbrCode: 0x0 +# DWARF32-NEXT: - AbbrCode: 0x4 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000085 -# DWARF32-NEXT: - Value: 0x0000000000000005 -# DWARF32-NEXT: - Value: 0x0000000000000004 -# DWARF32-NEXT: - AbbrCode: 0x00000005 +# DWARF32-NEXT: - Value: 0x85 +# DWARF32-NEXT: - Value: 0x5 +# DWARF32-NEXT: - Value: 0x4 +# DWARF32-NEXT: - AbbrCode: 0x5 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x000000000000006C -# DWARF32-NEXT: - AbbrCode: 0x00000005 +# DWARF32-NEXT: - Value: 0x6C +# DWARF32-NEXT: - AbbrCode: 0x5 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000071 -# DWARF32-NEXT: - AbbrCode: 0x00000004 +# DWARF32-NEXT: - Value: 0x71 +# DWARF32-NEXT: - AbbrCode: 0x4 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000089 -# DWARF32-NEXT: - Value: 0x0000000000000006 -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - AbbrCode: 0x00000000 +# DWARF32-NEXT: - Value: 0x89 +# DWARF32-NEXT: - Value: 0x6 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - AbbrCode: 0x0 ## b) Test that yaml2obj emits a correct unit header and obj2yaml is able to convert it back. @@ -581,15 +581,15 @@ DWARF: # RUN: obj2yaml | FileCheck %s --check-prefix=DWARF32-YAML # DWARF32-YAML: debug_info: -# DWARF32-YAML-NEXT: - Length: 0x000000000000000C +# DWARF32-YAML-NEXT: - Length: 0xC # DWARF32-YAML-NEXT: Version: 4 # DWARF32-YAML-NEXT: AbbrevTableID: 0 # DWARF32-YAML-NEXT: AbbrOffset: 0 # DWARF32-YAML-NEXT: AddrSize: 8 # DWARF32-YAML-NEXT: Entries: -# DWARF32-YAML-NEXT: - AbbrCode: 0x00000001 +# DWARF32-YAML-NEXT: - AbbrCode: 0x1 # DWARF32-YAML-NEXT: Values: -# DWARF32-YAML-NEXT: - Value: 0x0000000000001234 +# DWARF32-YAML-NEXT: - Value: 0x1234 --- !mach-o FileHeader: @@ -665,15 +665,15 @@ DWARF: # DWARF64-YAML: debug_info: # DWARF64-YAML-NEXT: - Format: DWARF64 -# DWARF64-YAML-NEXT: Length: 0x000000000000000C +# DWARF64-YAML-NEXT: Length: 0xC # DWARF64-YAML-NEXT: Version: 4 # DWARF64-YAML-NEXT: AbbrevTableID: 0 # DWARF64-YAML-NEXT: AbbrOffset: 0 # DWARF64-YAML-NEXT: AddrSize: 8 # DWARF64-YAML-NEXT: Entries: -# DWARF64-YAML-NEXT: - AbbrCode: 0x00000001 +# DWARF64-YAML-NEXT: - AbbrCode: 0x1 # DWARF64-YAML-NEXT: Values: -# DWARF64-YAML-NEXT: - Value: 0x0000000000001234 +# DWARF64-YAML-NEXT: - Value: 0x1234 ## c) Test that yaml2obj is able to generate compilation units according to the ## associated abbrev table that is referenced by the 'AbbrevTableID' and obj2yaml @@ -685,7 +685,7 @@ DWARF: # MULTI-TABLES-NEXT: debug_abbrev: # MULTI-TABLES-NEXT: - ID: 0 # MULTI-TABLES-NEXT: Table: -# MULTI-TABLES-NEXT: - Code: 0x0000000000000001 +# MULTI-TABLES-NEXT: - Code: 0x1 # MULTI-TABLES-NEXT: Tag: DW_TAG_compile_unit # MULTI-TABLES-NEXT: Children: DW_CHILDREN_no # MULTI-TABLES-NEXT: Attributes: @@ -693,13 +693,13 @@ DWARF: # MULTI-TABLES-NEXT: Form: DW_FORM_addr # MULTI-TABLES-NEXT: - ID: 1 # MULTI-TABLES-NEXT: Table: -# MULTI-TABLES-NEXT: - Code: 0x0000000000000001 +# MULTI-TABLES-NEXT: - Code: 0x1 # MULTI-TABLES-NEXT: Tag: DW_TAG_compile_unit # MULTI-TABLES-NEXT: Children: DW_CHILDREN_no # MULTI-TABLES-NEXT: Attributes: # MULTI-TABLES-NEXT: - Attribute: DW_AT_low_pc # MULTI-TABLES-NEXT: Form: DW_FORM_data4 -# MULTI-TABLES-NEXT: - Code: 0x0000000000000002 +# MULTI-TABLES-NEXT: - Code: 0x2 # MULTI-TABLES-NEXT: Tag: DW_TAG_compile_unit # MULTI-TABLES-NEXT: Children: DW_CHILDREN_no # MULTI-TABLES-NEXT: Attributes: @@ -707,7 +707,7 @@ DWARF: # MULTI-TABLES-NEXT: Form: DW_FORM_data4 # MULTI-TABLES-NEXT: - ID: 2 # MULTI-TABLES-NEXT: Table: -# MULTI-TABLES-NEXT: - Code: 0x0000000000000001 +# MULTI-TABLES-NEXT: - Code: 0x1 # MULTI-TABLES-NEXT: Tag: DW_TAG_compile_unit # MULTI-TABLES-NEXT: Children: DW_CHILDREN_no # MULTI-TABLES-NEXT: Attributes: @@ -715,42 +715,42 @@ DWARF: # MULTI-TABLES-NEXT: Form: DW_FORM_udata # MULTI-TABLES-NEXT: - ID: 3 # MULTI-TABLES-NEXT: debug_info: -# MULTI-TABLES-NEXT: - Length: 0x000000000000000C +# MULTI-TABLES-NEXT: - Length: 0xC # MULTI-TABLES-NEXT: Version: 4 # MULTI-TABLES-NEXT: AbbrevTableID: 1 -# MULTI-TABLES-NEXT: AbbrOffset: 0x0000000000000008 +# MULTI-TABLES-NEXT: AbbrOffset: 0x8 # MULTI-TABLES-NEXT: AddrSize: 8 # MULTI-TABLES-NEXT: Entries: -# MULTI-TABLES-NEXT: - AbbrCode: 0x00000001 +# MULTI-TABLES-NEXT: - AbbrCode: 0x1 # MULTI-TABLES-NEXT: Values: -# MULTI-TABLES-NEXT: - Value: 0x0000000000001234 -# MULTI-TABLES-NEXT: - Length: 0x000000000000000C +# MULTI-TABLES-NEXT: - Value: 0x1234 +# MULTI-TABLES-NEXT: - Length: 0xC # MULTI-TABLES-NEXT: Version: 4 # MULTI-TABLES-NEXT: AbbrevTableID: 1 -# MULTI-TABLES-NEXT: AbbrOffset: 0x0000000000000008 +# MULTI-TABLES-NEXT: AbbrOffset: 0x8 # MULTI-TABLES-NEXT: AddrSize: 8 # MULTI-TABLES-NEXT: Entries: -# MULTI-TABLES-NEXT: - AbbrCode: 0x00000001 +# MULTI-TABLES-NEXT: - AbbrCode: 0x1 # MULTI-TABLES-NEXT: Values: -# MULTI-TABLES-NEXT: - Value: 0x0000000000004321 -# MULTI-TABLES-NEXT: - Length: 0x0000000000000010 +# MULTI-TABLES-NEXT: - Value: 0x4321 +# MULTI-TABLES-NEXT: - Length: 0x10 # MULTI-TABLES-NEXT: Version: 4 # MULTI-TABLES-NEXT: AbbrevTableID: 0 -# MULTI-TABLES-NEXT: AbbrOffset: 0x0000000000000000 +# MULTI-TABLES-NEXT: AbbrOffset: 0x0 # MULTI-TABLES-NEXT: AddrSize: 8 # MULTI-TABLES-NEXT: Entries: -# MULTI-TABLES-NEXT: - AbbrCode: 0x00000001 +# MULTI-TABLES-NEXT: - AbbrCode: 0x1 # MULTI-TABLES-NEXT: Values: -# MULTI-TABLES-NEXT: - Value: 0x0000000000005678 -# MULTI-TABLES-NEXT: - Length: 0x000000000000000B +# MULTI-TABLES-NEXT: - Value: 0x5678 +# MULTI-TABLES-NEXT: - Length: 0xB # MULTI-TABLES-NEXT: Version: 4 # MULTI-TABLES-NEXT: AbbrevTableID: 2 -# MULTI-TABLES-NEXT: AbbrOffset: 0x0000000000000017 +# MULTI-TABLES-NEXT: AbbrOffset: 0x17 # MULTI-TABLES-NEXT: AddrSize: 8 # MULTI-TABLES-NEXT: Entries: -# MULTI-TABLES-NEXT: - AbbrCode: 0x00000001 +# MULTI-TABLES-NEXT: - AbbrCode: 0x1 # MULTI-TABLES-NEXT: Values: -# MULTI-TABLES-NEXT: - Value: 0x0000000000008765 +# MULTI-TABLES-NEXT: - Value: 0x8765 # MULTI-TABLES-NEXT: ... --- !mach-o diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_ranges.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_ranges.yaml index 5aea820..90ccc36 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-debug_ranges.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-debug_ranges.yaml @@ -41,22 +41,22 @@ # YAML: - sectname: __debug_ranges # YAML-NEXT: segname: __DWARF -# YAML-NEXT: addr: 0x000000000000007A +# YAML-NEXT: addr: 0x7A # YAML-NEXT: size: 80 -# YAML-NEXT: offset: 0x0000028A +# YAML-NEXT: offset: 0x28A # YAML: debug_ranges: -# YAML-NEXT: - Offset: 0x00000000 -# YAML-NEXT: AddrSize: 0x08 +# YAML-NEXT: - Offset: 0x0 +# YAML-NEXT: AddrSize: 0x8 # YAML-NEXT: Entries: -# YAML-NEXT: - LowOffset: 0x0000000000000000 -# YAML-NEXT: HighOffset: 0x0000000000000020 -# YAML-NEXT: - LowOffset: 0x0000000000000000 -# YAML-NEXT: HighOffset: 0x0000000000000030 +# YAML-NEXT: - LowOffset: 0x0 +# YAML-NEXT: HighOffset: 0x20 +# YAML-NEXT: - LowOffset: 0x0 +# YAML-NEXT: HighOffset: 0x30 # YAML-NEXT: - LowOffset: 0xFFFFFFFFFFFFFFFF -# YAML-NEXT: HighOffset: 0x0000000000001000 -# YAML-NEXT: - LowOffset: 0x0000000000000000 -# YAML-NEXT: HighOffset: 0x0000000000001000 +# YAML-NEXT: HighOffset: 0x1000 +# YAML-NEXT: - LowOffset: 0x0 +# YAML-NEXT: HighOffset: 0x1000 --- !mach-o FileHeader: @@ -296,15 +296,15 @@ LoadCommands: # FAILS: Sections: # FAILS-NEXT: - sectname: __debug_ranges # FAILS-NEXT: segname: __DWARF -# FAILS-NEXT: addr: 0x0000000000000000 +# FAILS-NEXT: addr: 0x0 # FAILS-NEXT: size: 3 -# FAILS-NEXT: offset: 0x00000210 +# FAILS-NEXT: offset: 0x210 # FAILS-NEXT: align: 0 -# FAILS-NEXT: reloff: 0x00000000 +# FAILS-NEXT: reloff: 0x0 # FAILS-NEXT: nreloc: 0 -# FAILS-NEXT: flags: 0x00000000 -# FAILS-NEXT: reserved1: 0x00000000 -# FAILS-NEXT: reserved2: 0x00000000 -# FAILS-NEXT: reserved3: 0x00000000 +# FAILS-NEXT: flags: 0x0 +# FAILS-NEXT: reserved1: 0x0 +# FAILS-NEXT: reserved2: 0x0 +# FAILS-NEXT: reserved3: 0x0 # FAILS-NEXT: content: '010203' # FAILS-NEXT: ... diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_str.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_str.yaml index 9bb55ea..2bfee49 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-debug_str.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-debug_str.yaml @@ -261,16 +261,16 @@ DWARF: # EMPTY-CONTENT: Sections: # EMPTY-CONTENT-NEXT: - sectname: __debug_str # EMPTY-CONTENT-NEXT: segname: __DWARF -# EMPTY-CONTENT-NEXT: addr: 0x0000000000000000 +# EMPTY-CONTENT-NEXT: addr: 0x0 # EMPTY-CONTENT-NEXT: size: 0 -# EMPTY-CONTENT-NEXT: offset: 0x00000210 +# EMPTY-CONTENT-NEXT: offset: 0x210 # EMPTY-CONTENT-NEXT: align: 0 -# EMPTY-CONTENT-NEXT: reloff: 0x00000000 +# EMPTY-CONTENT-NEXT: reloff: 0x0 # EMPTY-CONTENT-NEXT: nreloc: 0 -# EMPTY-CONTENT-NEXT: flags: 0x00000000 -# EMPTY-CONTENT-NEXT: reserved1: 0x00000000 -# EMPTY-CONTENT-NEXT: reserved2: 0x00000000 -# EMPTY-CONTENT-NEXT: reserved3: 0x00000000 +# EMPTY-CONTENT-NEXT: flags: 0x0 +# EMPTY-CONTENT-NEXT: reserved1: 0x0 +# EMPTY-CONTENT-NEXT: reserved2: 0x0 +# EMPTY-CONTENT-NEXT: reserved3: 0x0 # EMPTY-CONTENT-NEXT: DWARF: # EMPTY-CONTENT-NEXT: debug_str: [] @@ -330,16 +330,16 @@ DWARF: # NO-TERMINATOR: Sections: # NO-TERMINATOR-NEXT: - sectname: __debug_str # NO-TERMINATOR-NEXT: segname: __DWARF -# NO-TERMINATOR-NEXT: addr: 0x0000000000000000 +# NO-TERMINATOR-NEXT: addr: 0x0 # NO-TERMINATOR-NEXT: size: 7 -# NO-TERMINATOR-NEXT: offset: 0x00000210 +# NO-TERMINATOR-NEXT: offset: 0x210 # NO-TERMINATOR-NEXT: align: 0 -# NO-TERMINATOR-NEXT: reloff: 0x00000000 +# NO-TERMINATOR-NEXT: reloff: 0x0 # NO-TERMINATOR-NEXT: nreloc: 0 -# NO-TERMINATOR-NEXT: flags: 0x00000000 -# NO-TERMINATOR-NEXT: reserved1: 0x00000000 -# NO-TERMINATOR-NEXT: reserved2: 0x00000000 -# NO-TERMINATOR-NEXT: reserved3: 0x00000000 +# NO-TERMINATOR-NEXT: flags: 0x0 +# NO-TERMINATOR-NEXT: reserved1: 0x0 +# NO-TERMINATOR-NEXT: reserved2: 0x0 +# NO-TERMINATOR-NEXT: reserved3: 0x0 # NO-TERMINATOR-NEXT: content: '61626300616263' # NO-TERMINATOR-NEXT: ... diff --git a/llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml b/llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml index 9056af9..6638f2f 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml @@ -75,22 +75,22 @@ DWARF: # CHECK: DWARF: # CHECK: debug_pubnames: -# CHECK-NEXT: Length: 0x0000000000000017 +# CHECK-NEXT: Length: 0x17 # CHECK-NEXT: Version: 2 # CHECK-NEXT: UnitOffset: 0 # CHECK-NEXT: UnitSize: 121 # CHECK-NEXT: Entries: -# CHECK-NEXT: - DieOffset: 0x0000002A +# CHECK-NEXT: - DieOffset: 0x2A # CHECK-NEXT: Name: main # CHECK-NEXT: debug_pubtypes: -# CHECK-NEXT: Length: 0x000000000000001F +# CHECK-NEXT: Length: 0x1F # CHECK-NEXT: Version: 2 # CHECK-NEXT: UnitOffset: 0 # CHECK-NEXT: UnitSize: 121 # CHECK-NEXT: Entries: -# CHECK-NEXT: - DieOffset: 0x00000060 +# CHECK-NEXT: - DieOffset: 0x60 # CHECK-NEXT: Name: int -# CHECK-NEXT: - DieOffset: 0x00000071 +# CHECK-NEXT: - DieOffset: 0x71 # CHECK-NEXT: Name: char # CHECK-NEXT: ... @@ -104,28 +104,28 @@ DWARF: # EMPTY: Sections: # EMPTY-NEXT: - sectname: __debug_pubnames # EMPTY-NEXT: segname: __DWARF -# EMPTY-NEXT: addr: 0x0000000000000000 +# EMPTY-NEXT: addr: 0x0 # EMPTY-NEXT: size: 0 -# EMPTY-NEXT: offset: 0x00000000 +# EMPTY-NEXT: offset: 0x0 # EMPTY-NEXT: align: 0 -# EMPTY-NEXT: reloff: 0x00000000 +# EMPTY-NEXT: reloff: 0x0 # EMPTY-NEXT: nreloc: 0 -# EMPTY-NEXT: flags: 0x00000000 -# EMPTY-NEXT: reserved1: 0x00000000 -# EMPTY-NEXT: reserved2: 0x00000000 -# EMPTY-NEXT: reserved3: 0x00000000 +# EMPTY-NEXT: flags: 0x0 +# EMPTY-NEXT: reserved1: 0x0 +# EMPTY-NEXT: reserved2: 0x0 +# EMPTY-NEXT: reserved3: 0x0 # EMPTY-NEXT: - sectname: __debug_pubtypes # EMPTY-NEXT: segname: __DWARF -# EMPTY-NEXT: addr: 0x0000000000000000 +# EMPTY-NEXT: addr: 0x0 # EMPTY-NEXT: size: 0 -# EMPTY-NEXT: offset: 0x00000720 +# EMPTY-NEXT: offset: 0x720 # EMPTY-NEXT: align: 0 -# EMPTY-NEXT: reloff: 0x00000000 +# EMPTY-NEXT: reloff: 0x0 # EMPTY-NEXT: nreloc: 0 -# EMPTY-NEXT: flags: 0x00000000 -# EMPTY-NEXT: reserved1: 0x00000000 -# EMPTY-NEXT: reserved2: 0x00000000 -# EMPTY-NEXT: reserved3: 0x00000000 +# EMPTY-NEXT: flags: 0x0 +# EMPTY-NEXT: reserved1: 0x0 +# EMPTY-NEXT: reserved2: 0x0 +# EMPTY-NEXT: reserved3: 0x0 # EMPTY-NEXT: ... --- !mach-o @@ -183,12 +183,12 @@ DWARF: # INVALID-LENGTH: DWARF: # INVALID-LENGTH-NEXT: debug_pubnames: -# INVALID-LENGTH-NEXT: Length: 0x00000000DEADBEEF +# INVALID-LENGTH-NEXT: Length: 0xDEADBEEF # INVALID-LENGTH-NEXT: Version: 2 # INVALID-LENGTH-NEXT: UnitOffset: 0 # INVALID-LENGTH-NEXT: UnitSize: 121 # INVALID-LENGTH-NEXT: Entries: -# INVALID-LENGTH-NEXT: - DieOffset: 0x0000002A +# INVALID-LENGTH-NEXT: - DieOffset: 0x2A # INVALID-LENGTH-NEXT: Name: main --- !mach-o diff --git a/llvm/test/ObjectYAML/MachO/DWARF2-AddrSize8-FormValues.yaml b/llvm/test/ObjectYAML/MachO/DWARF2-AddrSize8-FormValues.yaml index c9d1f02..1e80c76 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF2-AddrSize8-FormValues.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF2-AddrSize8-FormValues.yaml @@ -416,43 +416,43 @@ DWARF: ... #CHECK: debug_info: -#CHECK: - Length: 0x00000000000000A8 +#CHECK: - Length: 0xA8 #CHECK: Version: 2 #CHECK: AbbrOffset: 0 #CHECK: AddrSize: 8 #CHECK: Entries: -#CHECK: - AbbrCode: 0x00000001 +#CHECK: - AbbrCode: 0x1 #CHECK: Values: -#CHECK: - Value: 0x0123456789ABCDEF -#CHECK: - Value: 0x000000000000000A -#CHECK: BlockData: [ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, -#CHECK: 0x08, 0x09, 0x00 ] -#CHECK: - Value: 0x000000000000000A -#CHECK: BlockData: [ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, -#CHECK: 0x08, 0x09, 0x00 ] -#CHECK: - Value: 0x000000000000000A -#CHECK: BlockData: [ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, -#CHECK: 0x08, 0x09, 0x00 ] -#CHECK: - Value: 0x000000000000000A -#CHECK: BlockData: [ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, -#CHECK: 0x08, 0x09, 0x00 ] -#CHECK: - Value: 0x0000000000000001 -#CHECK: - Value: 0x0000000000002345 -#CHECK: - Value: 0x000000006789ABCD -#CHECK: - Value: 0x0011223344556677 +#CHECK: - Value: 0x123456789ABCDEF +#CHECK: - Value: 0xA +#CHECK: BlockData: [ 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, +#CHECK: 0x9, 0x0 ] +#CHECK: - Value: 0xA +#CHECK: BlockData: [ 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, +#CHECK: 0x9, 0x0 ] +#CHECK: - Value: 0xA +#CHECK: BlockData: [ 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, +#CHECK: 0x9, 0x0 ] +#CHECK: - Value: 0xA +#CHECK: BlockData: [ 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, +#CHECK: 0x9, 0x0 ] +#CHECK: - Value: 0x1 +#CHECK: - Value: 0x2345 +#CHECK: - Value: 0x6789ABCD +#CHECK: - Value: 0x11223344556677 #CHECK: CStr: Hello -#CHECK: - Value: 0x0000000000000000 -#CHECK: - Value: 0x0000000012345678 -#CHECK: - Value: 0x0000000000000001 -#CHECK: - Value: 0x0000000000002345 -#CHECK: - Value: 0x000000006789ABCD -#CHECK: - Value: 0x0011223344556677 +#CHECK: - Value: 0x0 +#CHECK: - Value: 0x12345678 +#CHECK: - Value: 0x1 +#CHECK: - Value: 0x2345 +#CHECK: - Value: 0x6789ABCD +#CHECK: - Value: 0x11223344556677 #CHECK: - Value: 0xAABBCCDDEEFF0011 #CHECK: - Value: 0xFFFFFFFFFFFFFFFE -#CHECK: - Value: 0x0000000000000001 -#CHECK: - Value: 0x0000000000000000 -#CHECK: - Value: 0x0000000000000001 +#CHECK: - Value: 0x1 +#CHECK: - Value: 0x0 +#CHECK: - Value: 0x1 #CHECK: - Value: 0xFFFFFFFFFFFFFFFE -#CHECK: - Value: 0x0000000000000001 -#CHECK: - Value: 0x0000000000000002 -#CHECK: - Value: 0x0123456789ABCDEF +#CHECK: - Value: 0x1 +#CHECK: - Value: 0x2 +#CHECK: - Value: 0x123456789ABCDEF diff --git a/llvm/test/ObjectYAML/MachO/DWARF5-abbrevValues.yaml b/llvm/test/ObjectYAML/MachO/DWARF5-abbrevValues.yaml index e07d50a..e6f2f58 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF5-abbrevValues.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF5-abbrevValues.yaml @@ -287,10 +287,10 @@ DWARF: #CHECK: DWARF: #CHECK: debug_abbrev: -#CHECK: - Code: 0x0000000000000001 +#CHECK: - Code: 0x1 #CHECK: Tag: DW_TAG_compile_unit #CHECK: Children: DW_CHILDREN_yes #CHECK: Attributes: #CHECK: - Attribute: 0x2001 #CHECK: Form: DW_FORM_implicit_const -#CHECK: Value: 0x0000000012345678 +#CHECK: Value: 0x12345678 diff --git a/llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml b/llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml index e0f82e8..1900189 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml @@ -511,68 +511,68 @@ DWARF: # DWARF32: DWARF: # DWARF32: debug_info: -# DWARF32-NEXT: - Length: 0x0000000000000076 +# DWARF32-NEXT: - Length: 0x76 # DWARF32-NEXT: Version: 5 # DWARF32-NEXT: UnitType: DW_UT_compile # DWARF32-NEXT: AbbrevTableID: 0 # DWARF32-NEXT: AbbrOffset: 0 # DWARF32-NEXT: AddrSize: 8 # DWARF32-NEXT: Entries: -# DWARF32-NEXT: - AbbrCode: 0x00000001 +# DWARF32-NEXT: - AbbrCode: 0x1 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - Value: 0x000000000000000C -# DWARF32-NEXT: - Value: 0x0000000000000038 -# DWARF32-NEXT: - Value: 0x0000000000000000 -# DWARF32-NEXT: - Value: 0x0000000000000046 -# DWARF32-NEXT: - Value: 0x0000000100000F50 -# DWARF32-NEXT: - Value: 0x0000000000000034 -# DWARF32-NEXT: - AbbrCode: 0x00000002 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - Value: 0xC +# DWARF32-NEXT: - Value: 0x38 +# DWARF32-NEXT: - Value: 0x0 +# DWARF32-NEXT: - Value: 0x46 +# DWARF32-NEXT: - Value: 0x100000F50 +# DWARF32-NEXT: - Value: 0x34 +# DWARF32-NEXT: - AbbrCode: 0x2 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000100000F50 -# DWARF32-NEXT: - Value: 0x0000000000000034 -# DWARF32-NEXT: - Value: 0x0000000000000001 +# DWARF32-NEXT: - Value: 0x100000F50 +# DWARF32-NEXT: - Value: 0x34 +# DWARF32-NEXT: - Value: 0x1 # DWARF32-NEXT: BlockData: [ 0x56 ] -# DWARF32-NEXT: - Value: 0x0000000000000076 -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - Value: 0x0000000000000003 -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - Value: 0x0000000000000060 -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - AbbrCode: 0x00000003 +# DWARF32-NEXT: - Value: 0x76 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - Value: 0x3 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - Value: 0x60 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - AbbrCode: 0x3 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000002 +# DWARF32-NEXT: - Value: 0x2 # DWARF32-NEXT: BlockData: [ 0x91, 0x78 ] -# DWARF32-NEXT: - Value: 0x000000000000007B -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - Value: 0x0000000000000003 -# DWARF32-NEXT: - Value: 0x0000000000000060 -# DWARF32-NEXT: - AbbrCode: 0x00000003 +# DWARF32-NEXT: - Value: 0x7B +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - Value: 0x3 +# DWARF32-NEXT: - Value: 0x60 +# DWARF32-NEXT: - AbbrCode: 0x3 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000002 +# DWARF32-NEXT: - Value: 0x2 # DWARF32-NEXT: BlockData: [ 0x91, 0x70 ] -# DWARF32-NEXT: - Value: 0x0000000000000080 -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - Value: 0x0000000000000003 -# DWARF32-NEXT: - Value: 0x0000000000000067 -# DWARF32-NEXT: - AbbrCode: 0x00000000 -# DWARF32-NEXT: - AbbrCode: 0x00000004 +# DWARF32-NEXT: - Value: 0x80 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - Value: 0x3 +# DWARF32-NEXT: - Value: 0x67 +# DWARF32-NEXT: - AbbrCode: 0x0 +# DWARF32-NEXT: - AbbrCode: 0x4 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000085 -# DWARF32-NEXT: - Value: 0x0000000000000005 -# DWARF32-NEXT: - Value: 0x0000000000000004 -# DWARF32-NEXT: - AbbrCode: 0x00000005 +# DWARF32-NEXT: - Value: 0x85 +# DWARF32-NEXT: - Value: 0x5 +# DWARF32-NEXT: - Value: 0x4 +# DWARF32-NEXT: - AbbrCode: 0x5 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x000000000000006C -# DWARF32-NEXT: - AbbrCode: 0x00000005 +# DWARF32-NEXT: - Value: 0x6C +# DWARF32-NEXT: - AbbrCode: 0x5 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000071 -# DWARF32-NEXT: - AbbrCode: 0x00000004 +# DWARF32-NEXT: - Value: 0x71 +# DWARF32-NEXT: - AbbrCode: 0x4 # DWARF32-NEXT: Values: -# DWARF32-NEXT: - Value: 0x0000000000000089 -# DWARF32-NEXT: - Value: 0x0000000000000006 -# DWARF32-NEXT: - Value: 0x0000000000000001 -# DWARF32-NEXT: - AbbrCode: 0x00000000 +# DWARF32-NEXT: - Value: 0x89 +# DWARF32-NEXT: - Value: 0x6 +# DWARF32-NEXT: - Value: 0x1 +# DWARF32-NEXT: - AbbrCode: 0x0 ## b) Test that yaml2obj emits a correct unit header and obj2yaml is able to convert it back. @@ -582,16 +582,16 @@ DWARF: # RUN: obj2yaml | FileCheck %s --check-prefix=DWARF32-YAML # DWARF32-YAML: debug_info: -# DWARF32-YAML-NEXT: - Length: 0x000000000000000C +# DWARF32-YAML-NEXT: - Length: 0xC # DWARF32-YAML-NEXT: Version: 5 # DWARF32-YAML-NEXT: UnitType: DW_UT_compile # DWARF32-YAML-NEXT: AbbrevTableID: 0 -# DWARF32-YAML-NEXT: AbbrOffset: 0x0000000000000000 +# DWARF32-YAML-NEXT: AbbrOffset: 0x0 # DWARF32-YAML-NEXT: AddrSize: 8 # DWARF32-YAML-NEXT: Entries: -# DWARF32-YAML-NEXT: - AbbrCode: 0x00000001 +# DWARF32-YAML-NEXT: - AbbrCode: 0x1 # DWARF32-YAML-NEXT: Values: -# DWARF32-YAML-NEXT: - Value: 0x0000000000001234 +# DWARF32-YAML-NEXT: - Value: 0x1234 --- !mach-o FileHeader: @@ -668,13 +668,13 @@ DWARF: # DWARF64-YAML: debug_info: # DWARF64-YAML-NEXT: - Format: DWARF64 -# DWARF64-YAML-NEXT: Length: 0x0000000000000014 +# DWARF64-YAML-NEXT: Length: 0x14 # DWARF64-YAML-NEXT: Version: 5 # DWARF64-YAML-NEXT: UnitType: DW_UT_compile # DWARF64-YAML-NEXT: AbbrevTableID: 0 -# DWARF64-YAML-NEXT: AbbrOffset: 0x0000000000000000 +# DWARF64-YAML-NEXT: AbbrOffset: 0x0 # DWARF64-YAML-NEXT: AddrSize: 8 # DWARF64-YAML-NEXT: Entries: -# DWARF64-YAML-NEXT: - AbbrCode: 0x00000001 +# DWARF64-YAML-NEXT: - AbbrCode: 0x1 # DWARF64-YAML-NEXT: Values: -# DWARF64-YAML-NEXT: - Value: 0x0000000000001234 +# DWARF64-YAML-NEXT: - Value: 0x1234 diff --git a/llvm/test/ObjectYAML/MachO/LittleEndian.yaml b/llvm/test/ObjectYAML/MachO/LittleEndian.yaml index 1d54e28..8fbf37e 100644 --- a/llvm/test/ObjectYAML/MachO/LittleEndian.yaml +++ b/llvm/test/ObjectYAML/MachO/LittleEndian.yaml @@ -123,10 +123,10 @@ LinkEditData: #CHECK: FileHeader: #CHECK: magic: 0xFEEDFACF -#CHECK: cputype: 0x01000007 -#CHECK: cpusubtype: 0x00000003 -#CHECK: filetype: 0x00000001 +#CHECK: cputype: 0x1000007 +#CHECK: cpusubtype: 0x3 +#CHECK: filetype: 0x1 #CHECK: ncmds: 4 #CHECK: sizeofcmds: 512 -#CHECK: flags: 0x00002000 -#CHECK: reserved: 0x00000000 +#CHECK: flags: 0x2000 +#CHECK: reserved: 0x0 diff --git a/llvm/test/ObjectYAML/MachO/bind_opcode.yaml b/llvm/test/ObjectYAML/MachO/bind_opcode.yaml index 6cbf760..4073ca4 100644 --- a/llvm/test/ObjectYAML/MachO/bind_opcode.yaml +++ b/llvm/test/ObjectYAML/MachO/bind_opcode.yaml @@ -107,7 +107,7 @@ LinkEditData: #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000000 ] +#CHECK: ULEBExtraData: [ 0x0 ] #CHECK: - Opcode: BIND_OPCODE_DO_BIND #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM diff --git a/llvm/test/ObjectYAML/MachO/bogus_load_command.yaml b/llvm/test/ObjectYAML/MachO/bogus_load_command.yaml index 448e0cb..f9706dc 100644 --- a/llvm/test/ObjectYAML/MachO/bogus_load_command.yaml +++ b/llvm/test/ObjectYAML/MachO/bogus_load_command.yaml @@ -36,6 +36,6 @@ LoadCommands: #CHECK: ZeroPadBytes: #CHECK: - cmd: 0xDEADBEEF #CHECK: cmdsize: 24 -#CHECK: PayloadBytes: [ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, -#CHECK: 0x09, 0x0A, 0x0B, 0x0C, 0x00, 0x00, 0x00, 0x00 ] +#CHECK: PayloadBytes: [ 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, +#CHECK: 0xB, 0xC, 0x0, 0x0, 0x0, 0x0 ] #CHECK-NOT: LinkEditData: diff --git a/llvm/test/ObjectYAML/MachO/export_trie.yaml b/llvm/test/ObjectYAML/MachO/export_trie.yaml index 7d65138..6453752 100644 --- a/llvm/test/ObjectYAML/MachO/export_trie.yaml +++ b/llvm/test/ObjectYAML/MachO/export_trie.yaml @@ -184,8 +184,8 @@ LinkEditData: #CHECK: - TerminalSize: 2 #CHECK: NodeOffset: 33 #CHECK: Name: _mh_execute_header -#CHECK: Address: 0x0000000000000000 +#CHECK: Address: 0x0 #CHECK: - TerminalSize: 3 #CHECK: NodeOffset: 37 #CHECK: Name: main -#CHECK: Address: 0x0000000000001160 +#CHECK: Address: 0x1160 diff --git a/llvm/test/ObjectYAML/MachO/fat_macho_i386_x86_64.yaml b/llvm/test/ObjectYAML/MachO/fat_macho_i386_x86_64.yaml index b9b2f2d..50d45d6 100644 --- a/llvm/test/ObjectYAML/MachO/fat_macho_i386_x86_64.yaml +++ b/llvm/test/ObjectYAML/MachO/fat_macho_i386_x86_64.yaml @@ -46,36 +46,36 @@ Slices: #CHECK: magic: 0xCAFEBABE #CHECK: nfat_arch: 2 #CHECK: FatArchs: -#CHECK: - cputype: 0x00000007 -#CHECK: cpusubtype: 0x00000003 -#CHECK: offset: 0x0000000000001000 +#CHECK: - cputype: 0x7 +#CHECK: cpusubtype: 0x3 +#CHECK: offset: 0x1000 #CHECK: size: 15244 #CHECK: align: 12 -#CHECK: - cputype: 0x01000007 +#CHECK: - cputype: 0x1000007 #CHECK: cpusubtype: 0x80000003 -#CHECK: offset: 0x0000000000005000 +#CHECK: offset: 0x5000 #CHECK: size: 15380 #CHECK: align: 12 #CHECK: Slices: #CHECK: - !mach-o #CHECK: FileHeader: #CHECK: magic: 0xFEEDFACE -#CHECK: cputype: 0x00000007 -#CHECK: cpusubtype: 0x00000003 -#CHECK: filetype: 0x00000002 +#CHECK: cputype: 0x7 +#CHECK: cpusubtype: 0x3 +#CHECK: filetype: 0x2 #CHECK: ncmds: 0 #CHECK: sizeofcmds: 0 -#CHECK: flags: 0x01218085 +#CHECK: flags: 0x1218085 #CHECK: - !mach-o #CHECK: FileHeader: #CHECK: magic: 0xFEEDFACF -#CHECK: cputype: 0x01000007 +#CHECK: cputype: 0x1000007 #CHECK: cpusubtype: 0x80000003 -#CHECK: filetype: 0x00000002 +#CHECK: filetype: 0x2 #CHECK: ncmds: 0 #CHECK: sizeofcmds: 0 -#CHECK: flags: 0x00218085 -#CHECK: reserved: 0x00000000 +#CHECK: flags: 0x218085 +#CHECK: reserved: 0x0 #CHECK: ... ## b) Test that yaml2obj emits an error message if the number of 'FatArchs' is less than diff --git a/llvm/test/ObjectYAML/MachO/lazy_bind_opcode.yaml b/llvm/test/ObjectYAML/MachO/lazy_bind_opcode.yaml index 0db0ea1..432b747 100644 --- a/llvm/test/ObjectYAML/MachO/lazy_bind_opcode.yaml +++ b/llvm/test/ObjectYAML/MachO/lazy_bind_opcode.yaml @@ -267,7 +267,7 @@ LinkEditData: #CHECK: LazyBindOpcodes: #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000028 ] +#CHECK: ULEBExtraData: [ 0x28 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -279,7 +279,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000030 ] +#CHECK: ULEBExtraData: [ 0x30 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -291,7 +291,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000038 ] +#CHECK: ULEBExtraData: [ 0x38 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -303,7 +303,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000040 ] +#CHECK: ULEBExtraData: [ 0x40 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -315,7 +315,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000048 ] +#CHECK: ULEBExtraData: [ 0x48 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -327,7 +327,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000050 ] +#CHECK: ULEBExtraData: [ 0x50 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -339,7 +339,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000058 ] +#CHECK: ULEBExtraData: [ 0x58 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -351,7 +351,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000060 ] +#CHECK: ULEBExtraData: [ 0x60 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -363,7 +363,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000068 ] +#CHECK: ULEBExtraData: [ 0x68 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -375,7 +375,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000070 ] +#CHECK: ULEBExtraData: [ 0x70 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -387,7 +387,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000078 ] +#CHECK: ULEBExtraData: [ 0x78 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -399,7 +399,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000080 ] +#CHECK: ULEBExtraData: [ 0x80 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -411,7 +411,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000088 ] +#CHECK: ULEBExtraData: [ 0x88 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 2 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -423,7 +423,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000090 ] +#CHECK: ULEBExtraData: [ 0x90 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 2 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM @@ -435,7 +435,7 @@ LinkEditData: #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000098 ] +#CHECK: ULEBExtraData: [ 0x98 ] #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM #CHECK: Imm: 2 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM diff --git a/llvm/test/ObjectYAML/MachO/lc-ident.yaml b/llvm/test/ObjectYAML/MachO/lc-ident.yaml index 0bafea9..7d9efc8 100644 --- a/llvm/test/ObjectYAML/MachO/lc-ident.yaml +++ b/llvm/test/ObjectYAML/MachO/lc-ident.yaml @@ -19,4 +19,4 @@ LoadCommands: # CHECK: LoadCommands: # CHECK-NEXT: - cmd: LC_IDENT # CHECK-NEXT: cmdsize: 16 -# CHECK-NEXT: PayloadBytes: [ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 ] +# CHECK-NEXT: PayloadBytes: [ 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7 ] diff --git a/llvm/test/ObjectYAML/MachO/mach_header.yaml b/llvm/test/ObjectYAML/MachO/mach_header.yaml index f6cba12..0c4453f 100644 --- a/llvm/test/ObjectYAML/MachO/mach_header.yaml +++ b/llvm/test/ObjectYAML/MachO/mach_header.yaml @@ -14,11 +14,11 @@ FileHeader: # CHECK: --- !mach-o # CHECK: FileHeader: # CHECK: magic: 0xFEEDFACE -# CHECK: cputype: 0x00000007 +# CHECK: cputype: 0x7 # CHECK: cpusubtype: 0x80000003 -# CHECK: filetype: 0x00000002 +# CHECK: filetype: 0x2 # CHECK: ncmds: 0 # CHECK: sizeofcmds: 0 -# CHECK: flags: 0x00218085 +# CHECK: flags: 0x218085 # CHECK-NOT: reserved: # CHECK: ... diff --git a/llvm/test/ObjectYAML/MachO/mach_header_64.yaml b/llvm/test/ObjectYAML/MachO/mach_header_64.yaml index 620e098..de72440 100644 --- a/llvm/test/ObjectYAML/MachO/mach_header_64.yaml +++ b/llvm/test/ObjectYAML/MachO/mach_header_64.yaml @@ -15,11 +15,11 @@ FileHeader: # CHECK: --- !mach-o # CHECK: FileHeader: # CHECK: magic: 0xFEEDFACF -# CHECK: cputype: 0x01000007 +# CHECK: cputype: 0x1000007 # CHECK: cpusubtype: 0x80000003 -# CHECK: filetype: 0x00000002 +# CHECK: filetype: 0x2 # CHECK: ncmds: 0 # CHECK: sizeofcmds: 0 -# CHECK: flags: 0x00218085 -# CHECK: reserved: 0x00000000 +# CHECK: flags: 0x218085 +# CHECK: reserved: 0x0 # CHECK: ... diff --git a/llvm/test/ObjectYAML/MachO/out_of_order_linkedit.yaml b/llvm/test/ObjectYAML/MachO/out_of_order_linkedit.yaml index 81db5de..d318e33 100644 --- a/llvm/test/ObjectYAML/MachO/out_of_order_linkedit.yaml +++ b/llvm/test/ObjectYAML/MachO/out_of_order_linkedit.yaml @@ -214,10 +214,10 @@ LinkEditData: #CHECK: Imm: 1 #CHECK: - Opcode: REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ExtraData: [ 0x0000000000000028 ] +#CHECK: ExtraData: [ 0x28 ] #CHECK: - Opcode: REBASE_OPCODE_DO_REBASE_ULEB_TIMES #CHECK: Imm: 0 -#CHECK: ExtraData: [ 0x000000000000000F ] +#CHECK: ExtraData: [ 0xF ] #CHECK: - Opcode: REBASE_OPCODE_DONE #CHECK: Imm: 0 #CHECK: BindOpcodes: @@ -232,7 +232,7 @@ LinkEditData: #CHECK: Symbol: '' #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000000 ] +#CHECK: ULEBExtraData: [ 0x0 ] #CHECK: Symbol: '' #CHECK: - Opcode: BIND_OPCODE_DO_BIND #CHECK: Imm: 0 diff --git a/llvm/test/ObjectYAML/MachO/rebase_opcode.yaml b/llvm/test/ObjectYAML/MachO/rebase_opcode.yaml index 8e8ec97..36aee1c 100644 --- a/llvm/test/ObjectYAML/MachO/rebase_opcode.yaml +++ b/llvm/test/ObjectYAML/MachO/rebase_opcode.yaml @@ -82,9 +82,9 @@ LinkEditData: #CHECK: Imm: 1 #CHECK: - Opcode: REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ExtraData: [ 0x0000000000000028 ] +#CHECK: ExtraData: [ 0x28 ] #CHECK: - Opcode: REBASE_OPCODE_DO_REBASE_ULEB_TIMES #CHECK: Imm: 0 -#CHECK: ExtraData: [ 0x000000000000000F ] +#CHECK: ExtraData: [ 0xF ] #CHECK: - Opcode: REBASE_OPCODE_DONE #CHECK: Imm: 0 diff --git a/llvm/test/ObjectYAML/MachO/relocations_arm64.yaml b/llvm/test/ObjectYAML/MachO/relocations_arm64.yaml index 208b26f..9e8b355 100644 --- a/llvm/test/ObjectYAML/MachO/relocations_arm64.yaml +++ b/llvm/test/ObjectYAML/MachO/relocations_arm64.yaml @@ -32,19 +32,19 @@ # CHECK: Sections: # CHECK-NEXT: - sectname: __text # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x0000000000000000 +# CHECK-NEXT: addr: 0x0 # CHECK-NEXT: size: 48 -# CHECK-NEXT: offset: 0x000002C0 +# CHECK-NEXT: offset: 0x2C0 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x000003A0 +# CHECK-NEXT: reloff: 0x3A0 # CHECK-NEXT: nreloc: 4 # CHECK-NEXT: flags: 0x80000400 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000018 +# CHECK-NEXT: - address: 0x18 # CHECK-NEXT: symbolnum: 9 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -52,7 +52,7 @@ # CHECK-NEXT: type: 4 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000014 +# CHECK-NEXT: - address: 0x14 # CHECK-NEXT: symbolnum: 9 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -60,7 +60,7 @@ # CHECK-NEXT: type: 3 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x0000000C +# CHECK-NEXT: - address: 0xC # CHECK-NEXT: symbolnum: 12 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -68,7 +68,7 @@ # CHECK-NEXT: type: 4 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000008 +# CHECK-NEXT: - address: 0x8 # CHECK-NEXT: symbolnum: 12 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -78,19 +78,19 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __StaticInit # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x0000000000000030 +# CHECK-NEXT: addr: 0x30 # CHECK-NEXT: size: 56 -# CHECK-NEXT: offset: 0x000002F0 +# CHECK-NEXT: offset: 0x2F0 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x000003C0 +# CHECK-NEXT: reloff: 0x3C0 # CHECK-NEXT: nreloc: 7 # CHECK-NEXT: flags: 0x80000400 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x0000002C +# CHECK-NEXT: - address: 0x2C # CHECK-NEXT: symbolnum: 2 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -98,7 +98,7 @@ # CHECK-NEXT: type: 2 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000018 +# CHECK-NEXT: - address: 0x18 # CHECK-NEXT: symbolnum: 9 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -106,7 +106,7 @@ # CHECK-NEXT: type: 4 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000014 +# CHECK-NEXT: - address: 0x14 # CHECK-NEXT: symbolnum: 9 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -114,7 +114,7 @@ # CHECK-NEXT: type: 3 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x0000000C +# CHECK-NEXT: - address: 0xC # CHECK-NEXT: symbolnum: 11 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -122,7 +122,7 @@ # CHECK-NEXT: type: 4 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000008 +# CHECK-NEXT: - address: 0x8 # CHECK-NEXT: symbolnum: 11 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -130,7 +130,7 @@ # CHECK-NEXT: type: 3 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000004 +# CHECK-NEXT: - address: 0x4 # CHECK-NEXT: symbolnum: 10 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -138,7 +138,7 @@ # CHECK-NEXT: type: 4 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 10 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -148,19 +148,19 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __data # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x0000000000000068 +# CHECK-NEXT: addr: 0x68 # CHECK-NEXT: size: 16 -# CHECK-NEXT: offset: 0x00000328 +# CHECK-NEXT: offset: 0x328 # CHECK-NEXT: align: 3 -# CHECK-NEXT: reloff: 0x000003F8 +# CHECK-NEXT: reloff: 0x3F8 # CHECK-NEXT: nreloc: 1 -# CHECK-NEXT: flags: 0x00000000 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x0 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000008 +# CHECK-NEXT: - address: 0x8 # CHECK-NEXT: symbolnum: 10 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -170,31 +170,31 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __common # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x00000000000000E0 +# CHECK-NEXT: addr: 0xE0 # CHECK-NEXT: size: 8 -# CHECK-NEXT: offset: 0x00000000 +# CHECK-NEXT: offset: 0x0 # CHECK-NEXT: align: 3 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 -# CHECK-NEXT: flags: 0x00000001 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x1 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: - sectname: __mod_init_func # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x0000000000000078 +# CHECK-NEXT: addr: 0x78 # CHECK-NEXT: size: 8 -# CHECK-NEXT: offset: 0x00000338 +# CHECK-NEXT: offset: 0x338 # CHECK-NEXT: align: 3 -# CHECK-NEXT: reloff: 0x00000400 +# CHECK-NEXT: reloff: 0x400 # CHECK-NEXT: nreloc: 1 -# CHECK-NEXT: flags: 0x00000009 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x9 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 3 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -204,19 +204,19 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __compact_unwind # CHECK-NEXT: segname: __LD -# CHECK-NEXT: addr: 0x0000000000000080 +# CHECK-NEXT: addr: 0x80 # CHECK-NEXT: size: 96 -# CHECK-NEXT: offset: 0x00000340 +# CHECK-NEXT: offset: 0x340 # CHECK-NEXT: align: 3 -# CHECK-NEXT: reloff: 0x00000408 +# CHECK-NEXT: reloff: 0x408 # CHECK-NEXT: nreloc: 3 -# CHECK-NEXT: flags: 0x02000000 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x2000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000040 +# CHECK-NEXT: - address: 0x40 # CHECK-NEXT: symbolnum: 2 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -224,7 +224,7 @@ # CHECK-NEXT: type: 0 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000020 +# CHECK-NEXT: - address: 0x20 # CHECK-NEXT: symbolnum: 1 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -232,7 +232,7 @@ # CHECK-NEXT: type: 0 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 2 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 diff --git a/llvm/test/ObjectYAML/MachO/relocations_armv7.yaml b/llvm/test/ObjectYAML/MachO/relocations_armv7.yaml index f1c2842..6aaa8e9 100644 --- a/llvm/test/ObjectYAML/MachO/relocations_armv7.yaml +++ b/llvm/test/ObjectYAML/MachO/relocations_armv7.yaml @@ -37,19 +37,19 @@ # CHECK: Sections: # CHECK-NEXT: - sectname: __text # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x0000000000000000 +# CHECK-NEXT: addr: 0x0 # CHECK-NEXT: size: 36 -# CHECK-NEXT: offset: 0x00000220 +# CHECK-NEXT: offset: 0x220 # CHECK-NEXT: align: 1 -# CHECK-NEXT: reloff: 0x00000284 +# CHECK-NEXT: reloff: 0x284 # CHECK-NEXT: nreloc: 8 # CHECK-NEXT: flags: 0x80000400 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000016 +# CHECK-NEXT: - address: 0x16 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -57,7 +57,7 @@ # CHECK-NEXT: type: 9 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 100 -# CHECK-NEXT: - address: 0x00000046 +# CHECK-NEXT: - address: 0x46 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -65,7 +65,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 26 -# CHECK-NEXT: - address: 0x00000012 +# CHECK-NEXT: - address: 0x12 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -73,7 +73,7 @@ # CHECK-NEXT: type: 9 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 100 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -81,7 +81,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 26 -# CHECK-NEXT: - address: 0x0000000A +# CHECK-NEXT: - address: 0xA # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -89,7 +89,7 @@ # CHECK-NEXT: type: 9 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 92 -# CHECK-NEXT: - address: 0x0000004A +# CHECK-NEXT: - address: 0x4A # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -97,7 +97,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 14 -# CHECK-NEXT: - address: 0x00000006 +# CHECK-NEXT: - address: 0x6 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -105,7 +105,7 @@ # CHECK-NEXT: type: 9 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 92 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -115,19 +115,19 @@ # CHECK-NEXT: value: 14 # CHECK-NEXT: - sectname: __StaticInit # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x0000000000000024 +# CHECK-NEXT: addr: 0x24 # CHECK-NEXT: size: 46 -# CHECK-NEXT: offset: 0x00000244 +# CHECK-NEXT: offset: 0x244 # CHECK-NEXT: align: 1 -# CHECK-NEXT: reloff: 0x000002C4 +# CHECK-NEXT: reloff: 0x2C4 # CHECK-NEXT: nreloc: 13 # CHECK-NEXT: flags: 0x80000400 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000028 +# CHECK-NEXT: - address: 0x28 # CHECK-NEXT: symbolnum: 2 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -135,7 +135,7 @@ # CHECK-NEXT: type: 6 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x0000001A +# CHECK-NEXT: - address: 0x1A # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -143,7 +143,7 @@ # CHECK-NEXT: type: 9 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 100 -# CHECK-NEXT: - address: 0x0000001E +# CHECK-NEXT: - address: 0x1E # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -151,7 +151,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 66 -# CHECK-NEXT: - address: 0x00000016 +# CHECK-NEXT: - address: 0x16 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -159,7 +159,7 @@ # CHECK-NEXT: type: 9 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 100 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -167,7 +167,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 66 -# CHECK-NEXT: - address: 0x0000000E +# CHECK-NEXT: - address: 0xE # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -175,7 +175,7 @@ # CHECK-NEXT: type: 9 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 84 -# CHECK-NEXT: - address: 0x0000001A +# CHECK-NEXT: - address: 0x1A # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -183,7 +183,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 54 -# CHECK-NEXT: - address: 0x0000000A +# CHECK-NEXT: - address: 0xA # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -191,7 +191,7 @@ # CHECK-NEXT: type: 9 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 84 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -199,7 +199,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 54 -# CHECK-NEXT: - address: 0x00000004 +# CHECK-NEXT: - address: 0x4 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -207,7 +207,7 @@ # CHECK-NEXT: type: 9 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 88 -# CHECK-NEXT: - address: 0x00000028 +# CHECK-NEXT: - address: 0x28 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -215,7 +215,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 44 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -223,7 +223,7 @@ # CHECK-NEXT: type: 9 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 88 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -233,19 +233,19 @@ # CHECK-NEXT: value: 44 # CHECK-NEXT: - sectname: __data # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x0000000000000054 +# CHECK-NEXT: addr: 0x54 # CHECK-NEXT: size: 12 -# CHECK-NEXT: offset: 0x00000274 +# CHECK-NEXT: offset: 0x274 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x0000032C +# CHECK-NEXT: reloff: 0x32C # CHECK-NEXT: nreloc: 1 -# CHECK-NEXT: flags: 0x00000000 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x0 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000008 +# CHECK-NEXT: - address: 0x8 # CHECK-NEXT: symbolnum: 3 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -255,31 +255,31 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __common # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x0000000000000064 +# CHECK-NEXT: addr: 0x64 # CHECK-NEXT: size: 4 -# CHECK-NEXT: offset: 0x00000000 +# CHECK-NEXT: offset: 0x0 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 -# CHECK-NEXT: flags: 0x00000001 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x1 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: - sectname: __mod_init_func # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x0000000000000060 +# CHECK-NEXT: addr: 0x60 # CHECK-NEXT: size: 4 -# CHECK-NEXT: offset: 0x00000280 +# CHECK-NEXT: offset: 0x280 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x00000334 +# CHECK-NEXT: reloff: 0x334 # CHECK-NEXT: nreloc: 1 -# CHECK-NEXT: flags: 0x00000009 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x9 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: '48000000' # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 2 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 diff --git a/llvm/test/ObjectYAML/MachO/relocations_empty.yaml b/llvm/test/ObjectYAML/MachO/relocations_empty.yaml index 8a6a031..6d13ae1 100644 --- a/llvm/test/ObjectYAML/MachO/relocations_empty.yaml +++ b/llvm/test/ObjectYAML/MachO/relocations_empty.yaml @@ -8,16 +8,16 @@ # CHECK: Sections: # CHECK-NEXT: - sectname: __text # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x0000000000000000 +# CHECK-NEXT: addr: 0x0 # CHECK-NEXT: size: 0 -# CHECK-NEXT: offset: 0x000000C8 +# CHECK-NEXT: offset: 0xC8 # CHECK-NEXT: align: 0 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 # CHECK-NEXT: flags: 0x80000000 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: '' # CHECK-NOT: relocations: diff --git a/llvm/test/ObjectYAML/MachO/relocations_ppc_big_endian.yaml b/llvm/test/ObjectYAML/MachO/relocations_ppc_big_endian.yaml index bfeed67..40a6088 100644 --- a/llvm/test/ObjectYAML/MachO/relocations_ppc_big_endian.yaml +++ b/llvm/test/ObjectYAML/MachO/relocations_ppc_big_endian.yaml @@ -43,19 +43,19 @@ # CHECK: Sections: # CHECK-NEXT: - sectname: __text # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x0000000000000000 +# CHECK-NEXT: addr: 0x0 # CHECK-NEXT: size: 76 -# CHECK-NEXT: offset: 0x000002EC +# CHECK-NEXT: offset: 0x2EC # CHECK-NEXT: align: 4 -# CHECK-NEXT: reloff: 0x00000430 +# CHECK-NEXT: reloff: 0x430 # CHECK-NEXT: nreloc: 8 # CHECK-NEXT: flags: 0x80000400 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000030 +# CHECK-NEXT: - address: 0x30 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -63,7 +63,7 @@ # CHECK-NEXT: type: 11 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 324 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -71,7 +71,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 24 -# CHECK-NEXT: - address: 0x0000002C +# CHECK-NEXT: - address: 0x2C # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -79,7 +79,7 @@ # CHECK-NEXT: type: 12 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 324 -# CHECK-NEXT: - address: 0x0000012C +# CHECK-NEXT: - address: 0x12C # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -87,7 +87,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 24 -# CHECK-NEXT: - address: 0x00000028 +# CHECK-NEXT: - address: 0x28 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -95,7 +95,7 @@ # CHECK-NEXT: type: 11 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 212 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -103,7 +103,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 24 -# CHECK-NEXT: - address: 0x00000024 +# CHECK-NEXT: - address: 0x24 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -111,7 +111,7 @@ # CHECK-NEXT: type: 12 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 212 -# CHECK-NEXT: - address: 0x000000BC +# CHECK-NEXT: - address: 0xBC # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -121,45 +121,45 @@ # CHECK-NEXT: value: 24 # CHECK-NEXT: - sectname: __textcoal_nt # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x000000000000004C +# CHECK-NEXT: addr: 0x4C # CHECK-NEXT: size: 0 -# CHECK-NEXT: offset: 0x00000338 +# CHECK-NEXT: offset: 0x338 # CHECK-NEXT: align: 0 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 # CHECK-NEXT: flags: 0x8000000B -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: '' # CHECK-NEXT: - sectname: __picsymbolstub1 # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x000000000000004C +# CHECK-NEXT: addr: 0x4C # CHECK-NEXT: size: 0 -# CHECK-NEXT: offset: 0x00000338 +# CHECK-NEXT: offset: 0x338 # CHECK-NEXT: align: 0 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 # CHECK-NEXT: flags: 0x80000008 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000020 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x20 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: '' # CHECK-NEXT: - sectname: __StaticInit # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x0000000000000050 +# CHECK-NEXT: addr: 0x50 # CHECK-NEXT: size: 124 -# CHECK-NEXT: offset: 0x0000033C +# CHECK-NEXT: offset: 0x33C # CHECK-NEXT: align: 4 -# CHECK-NEXT: reloff: 0x00000470 +# CHECK-NEXT: reloff: 0x470 # CHECK-NEXT: nreloc: 13 # CHECK-NEXT: flags: 0x80000400 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000064 +# CHECK-NEXT: - address: 0x64 # CHECK-NEXT: symbolnum: 4 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -167,7 +167,7 @@ # CHECK-NEXT: type: 3 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000034 +# CHECK-NEXT: - address: 0x34 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -175,7 +175,7 @@ # CHECK-NEXT: type: 11 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 324 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -183,7 +183,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 104 -# CHECK-NEXT: - address: 0x00000030 +# CHECK-NEXT: - address: 0x30 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -191,7 +191,7 @@ # CHECK-NEXT: type: 12 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 324 -# CHECK-NEXT: - address: 0x000000DC +# CHECK-NEXT: - address: 0xDC # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -199,7 +199,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 104 -# CHECK-NEXT: - address: 0x00000028 +# CHECK-NEXT: - address: 0x28 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -207,7 +207,7 @@ # CHECK-NEXT: type: 11 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 208 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -215,7 +215,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 104 -# CHECK-NEXT: - address: 0x00000024 +# CHECK-NEXT: - address: 0x24 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -223,7 +223,7 @@ # CHECK-NEXT: type: 12 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 208 -# CHECK-NEXT: - address: 0x00000068 +# CHECK-NEXT: - address: 0x68 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -231,7 +231,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 104 -# CHECK-NEXT: - address: 0x00000020 +# CHECK-NEXT: - address: 0x20 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -239,7 +239,7 @@ # CHECK-NEXT: type: 11 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 204 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -247,7 +247,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 104 -# CHECK-NEXT: - address: 0x0000001C +# CHECK-NEXT: - address: 0x1C # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -255,7 +255,7 @@ # CHECK-NEXT: type: 12 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 204 -# CHECK-NEXT: - address: 0x00000064 +# CHECK-NEXT: - address: 0x64 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -265,19 +265,19 @@ # CHECK-NEXT: value: 104 # CHECK-NEXT: - sectname: __data # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x00000000000000CC +# CHECK-NEXT: addr: 0xCC # CHECK-NEXT: size: 12 -# CHECK-NEXT: offset: 0x000003B8 +# CHECK-NEXT: offset: 0x3B8 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x000004D8 +# CHECK-NEXT: reloff: 0x4D8 # CHECK-NEXT: nreloc: 1 -# CHECK-NEXT: flags: 0x00000000 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x0 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000008 +# CHECK-NEXT: - address: 0x8 # CHECK-NEXT: symbolnum: 5 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -287,31 +287,31 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __common # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x0000000000000144 +# CHECK-NEXT: addr: 0x144 # CHECK-NEXT: size: 4 -# CHECK-NEXT: offset: 0x00000000 +# CHECK-NEXT: offset: 0x0 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 -# CHECK-NEXT: flags: 0x00000001 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x1 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: - sectname: __mod_init_func # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x00000000000000D8 +# CHECK-NEXT: addr: 0xD8 # CHECK-NEXT: size: 4 -# CHECK-NEXT: offset: 0x000003C4 +# CHECK-NEXT: offset: 0x3C4 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x000004E0 +# CHECK-NEXT: reloff: 0x4E0 # CHECK-NEXT: nreloc: 1 -# CHECK-NEXT: flags: 0x00000009 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x9 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: 000000A0 # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 4 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -321,19 +321,19 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __eh_frame # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x00000000000000DC +# CHECK-NEXT: addr: 0xDC # CHECK-NEXT: size: 104 -# CHECK-NEXT: offset: 0x000003C8 +# CHECK-NEXT: offset: 0x3C8 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x000004E8 +# CHECK-NEXT: reloff: 0x4E8 # CHECK-NEXT: nreloc: 3 # CHECK-NEXT: flags: 0x6800000B -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000054 +# CHECK-NEXT: - address: 0x54 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -341,7 +341,7 @@ # CHECK-NEXT: type: 0 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 160 -# CHECK-NEXT: - address: 0x00000038 +# CHECK-NEXT: - address: 0x38 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 @@ -349,7 +349,7 @@ # CHECK-NEXT: type: 0 # CHECK-NEXT: scattered: true # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x0000001C +# CHECK-NEXT: - address: 0x1C # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 2 diff --git a/llvm/test/ObjectYAML/MachO/relocations_x86_64.yaml b/llvm/test/ObjectYAML/MachO/relocations_x86_64.yaml index 9c5ba88..a1ddd30 100644 --- a/llvm/test/ObjectYAML/MachO/relocations_x86_64.yaml +++ b/llvm/test/ObjectYAML/MachO/relocations_x86_64.yaml @@ -27,19 +27,19 @@ # CHECK: Sections: # CHECK-NEXT: - sectname: __text # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x0000000000000000 +# CHECK-NEXT: addr: 0x0 # CHECK-NEXT: size: 27 -# CHECK-NEXT: offset: 0x00000310 +# CHECK-NEXT: offset: 0x310 # CHECK-NEXT: align: 4 -# CHECK-NEXT: reloff: 0x00000468 +# CHECK-NEXT: reloff: 0x468 # CHECK-NEXT: nreloc: 2 # CHECK-NEXT: flags: 0x80000400 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000015 +# CHECK-NEXT: - address: 0x15 # CHECK-NEXT: symbolnum: 3 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -47,7 +47,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x0000000E +# CHECK-NEXT: - address: 0xE # CHECK-NEXT: symbolnum: 6 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -57,19 +57,19 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __StaticInit # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x0000000000000020 +# CHECK-NEXT: addr: 0x20 # CHECK-NEXT: size: 43 -# CHECK-NEXT: offset: 0x00000330 +# CHECK-NEXT: offset: 0x330 # CHECK-NEXT: align: 4 -# CHECK-NEXT: reloff: 0x00000478 +# CHECK-NEXT: reloff: 0x478 # CHECK-NEXT: nreloc: 4 # CHECK-NEXT: flags: 0x80000400 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000025 +# CHECK-NEXT: - address: 0x25 # CHECK-NEXT: symbolnum: 0 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -77,7 +77,7 @@ # CHECK-NEXT: type: 2 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000018 +# CHECK-NEXT: - address: 0x18 # CHECK-NEXT: symbolnum: 3 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -85,7 +85,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x0000000E +# CHECK-NEXT: - address: 0xE # CHECK-NEXT: symbolnum: 4 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -93,7 +93,7 @@ # CHECK-NEXT: type: 1 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000007 +# CHECK-NEXT: - address: 0x7 # CHECK-NEXT: symbolnum: 5 # CHECK-NEXT: pcrel: true # CHECK-NEXT: length: 2 @@ -103,19 +103,19 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __data # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x0000000000000050 +# CHECK-NEXT: addr: 0x50 # CHECK-NEXT: size: 16 -# CHECK-NEXT: offset: 0x00000360 +# CHECK-NEXT: offset: 0x360 # CHECK-NEXT: align: 3 -# CHECK-NEXT: reloff: 0x00000498 +# CHECK-NEXT: reloff: 0x498 # CHECK-NEXT: nreloc: 1 -# CHECK-NEXT: flags: 0x00000000 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x0 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: '01000000020000000000000000000000' # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000008 +# CHECK-NEXT: - address: 0x8 # CHECK-NEXT: symbolnum: 4 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -125,31 +125,31 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __common # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x0000000000000158 +# CHECK-NEXT: addr: 0x158 # CHECK-NEXT: size: 8 -# CHECK-NEXT: offset: 0x00000000 +# CHECK-NEXT: offset: 0x0 # CHECK-NEXT: align: 3 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 -# CHECK-NEXT: flags: 0x00000001 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x1 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: - sectname: __mod_init_func # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x0000000000000060 +# CHECK-NEXT: addr: 0x60 # CHECK-NEXT: size: 8 -# CHECK-NEXT: offset: 0x00000370 +# CHECK-NEXT: offset: 0x370 # CHECK-NEXT: align: 3 -# CHECK-NEXT: reloff: 0x000004A0 +# CHECK-NEXT: reloff: 0x4A0 # CHECK-NEXT: nreloc: 1 -# CHECK-NEXT: flags: 0x00000009 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x9 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 1 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -159,19 +159,19 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __compact_unwind # CHECK-NEXT: segname: __LD -# CHECK-NEXT: addr: 0x0000000000000068 +# CHECK-NEXT: addr: 0x68 # CHECK-NEXT: size: 96 -# CHECK-NEXT: offset: 0x00000378 +# CHECK-NEXT: offset: 0x378 # CHECK-NEXT: align: 3 -# CHECK-NEXT: reloff: 0x000004A8 +# CHECK-NEXT: reloff: 0x4A8 # CHECK-NEXT: nreloc: 3 -# CHECK-NEXT: flags: 0x02000000 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x2000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: # CHECK-NEXT: relocations: -# CHECK-NEXT: - address: 0x00000040 +# CHECK-NEXT: - address: 0x40 # CHECK-NEXT: symbolnum: 2 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -179,7 +179,7 @@ # CHECK-NEXT: type: 0 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000020 +# CHECK-NEXT: - address: 0x20 # CHECK-NEXT: symbolnum: 1 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -187,7 +187,7 @@ # CHECK-NEXT: type: 0 # CHECK-NEXT: scattered: false # CHECK-NEXT: value: 0 -# CHECK-NEXT: - address: 0x00000000 +# CHECK-NEXT: - address: 0x0 # CHECK-NEXT: symbolnum: 2 # CHECK-NEXT: pcrel: false # CHECK-NEXT: length: 3 @@ -197,16 +197,16 @@ # CHECK-NEXT: value: 0 # CHECK-NEXT: - sectname: __eh_frame # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x00000000000000C8 +# CHECK-NEXT: addr: 0xC8 # CHECK-NEXT: size: 144 -# CHECK-NEXT: offset: 0x000003D8 +# CHECK-NEXT: offset: 0x3D8 # CHECK-NEXT: align: 3 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 # CHECK-NEXT: flags: 0x6800000B -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 --- !mach-o FileHeader: diff --git a/llvm/test/ObjectYAML/MachO/sections.yaml b/llvm/test/ObjectYAML/MachO/sections.yaml index f8c5370..76d6205 100644 --- a/llvm/test/ObjectYAML/MachO/sections.yaml +++ b/llvm/test/ObjectYAML/MachO/sections.yaml @@ -256,16 +256,16 @@ LoadCommands: #CHECK: Sections: #CHECK: - sectname: __text #CHECK: segname: __TEXT -#CHECK: addr: 0x0000000100001160 +#CHECK: addr: 0x100001160 #CHECK: size: 3099 -#CHECK: offset: 0x00001160 +#CHECK: offset: 0x1160 #CHECK: align: 4 -#CHECK: reloff: 0x00000000 +#CHECK: reloff: 0x0 #CHECK: nreloc: 0 #CHECK: flags: 0x80000400 -#CHECK: reserved1: 0x00000000 -#CHECK: reserved2: 0x00000000 -#CHECK: reserved3: 0x00000000 +#CHECK: reserved1: 0x0 +#CHECK: reserved2: 0x0 +#CHECK: reserved3: 0x0 #CHECK: - sectname: __stubs #CHECK: segname: __TEXT #CHECK: - sectname: __stub_helper diff --git a/llvm/test/ObjectYAML/MachO/symtab.yaml b/llvm/test/ObjectYAML/MachO/symtab.yaml index 3992285..5ba75a1 100644 --- a/llvm/test/ObjectYAML/MachO/symtab.yaml +++ b/llvm/test/ObjectYAML/MachO/symtab.yaml @@ -363,117 +363,117 @@ LinkEditData: #CHECK: n_desc: 128 #CHECK: n_value: 4294974832 #CHECK: - n_strx: 420 -#CHECK: n_type: 0x0E +#CHECK: n_type: 0xE #CHECK: n_sect: 4 #CHECK: n_desc: 0 #CHECK: n_value: 4294975104 #CHECK: - n_strx: 438 -#CHECK: n_type: 0x0E +#CHECK: n_type: 0xE #CHECK: n_sect: 4 #CHECK: n_desc: 0 #CHECK: n_value: 4294975280 #CHECK: - n_strx: 456 -#CHECK: n_type: 0x0F +#CHECK: n_type: 0xF #CHECK: n_sect: 1 #CHECK: n_desc: 16 #CHECK: n_value: 4294967296 #CHECK: - n_strx: 476 -#CHECK: n_type: 0x0F +#CHECK: n_type: 0xF #CHECK: n_sect: 1 #CHECK: n_desc: 0 #CHECK: n_value: 4294971744 #CHECK: - n_strx: 482 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 512 #CHECK: n_value: 0 #CHECK: - n_strx: 498 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 537 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 567 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 642 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 711 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 774 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 834 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 851 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 875 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 897 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 954 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 982 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 999 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 1018 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 1035 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 256 #CHECK: n_value: 0 #CHECK: - n_strx: 1057 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 512 #CHECK: n_value: 0 #CHECK: - n_strx: 1065 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 512 #CHECK: n_value: 0 #CHECK: - n_strx: 1073 -#CHECK: n_type: 0x01 +#CHECK: n_type: 0x1 #CHECK: n_sect: 0 #CHECK: n_desc: 512 #CHECK: n_value: 0 diff --git a/llvm/test/ObjectYAML/MachO/virtual_section.yaml b/llvm/test/ObjectYAML/MachO/virtual_section.yaml index 73c7b6b..67ede1f 100644 --- a/llvm/test/ObjectYAML/MachO/virtual_section.yaml +++ b/llvm/test/ObjectYAML/MachO/virtual_section.yaml @@ -165,64 +165,64 @@ LinkEditData: # CHECK: - sectname: __text # CHECK-NEXT: segname: __TEXT -# CHECK-NEXT: addr: 0x0000000000000000 +# CHECK-NEXT: addr: 0x0 # CHECK-NEXT: size: 72 -# CHECK-NEXT: offset: 0x000002B0 +# CHECK-NEXT: offset: 0x2B0 # CHECK-NEXT: align: 4 -# CHECK-NEXT: reloff: 0x00000350 +# CHECK-NEXT: reloff: 0x350 # CHECK-NEXT: nreloc: 0 # CHECK-NEXT: flags: 0x80000400 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: {{(DEADBEEF|EFBEADDE){18}$}} # CHECK-NEXT: - sectname: __data # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x0000000000000048 +# CHECK-NEXT: addr: 0x48 # CHECK-NEXT: size: 4 -# CHECK-NEXT: offset: 0x000002F8 +# CHECK-NEXT: offset: 0x2F8 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 -# CHECK-NEXT: flags: 0x00000000 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x0 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: {{(DEADBEEF|EFBEADDE)$}} # CHECK-NEXT: - sectname: __bss # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x00000000000000A0 +# CHECK-NEXT: addr: 0xA0 # CHECK-NEXT: size: 8 -# CHECK-NEXT: offset: 0x00000000 +# CHECK-NEXT: offset: 0x0 # CHECK-NEXT: align: 2 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 -# CHECK-NEXT: flags: 0x00000001 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x1 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: - sectname: __thread_bss # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x00000000000000A8 +# CHECK-NEXT: addr: 0xA8 # CHECK-NEXT: size: 7 -# CHECK-NEXT: offset: 0x00000000 +# CHECK-NEXT: offset: 0x0 # CHECK-NEXT: align: 0 -# CHECK-NEXT: reloff: 0x00000000 +# CHECK-NEXT: reloff: 0x0 # CHECK-NEXT: nreloc: 0 -# CHECK-NEXT: flags: 0x00000012 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x12 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: - sectname: __thread_vars # CHECK-NEXT: segname: __DATA -# CHECK-NEXT: addr: 0x000000000000004C +# CHECK-NEXT: addr: 0x4C # CHECK-NEXT: size: 12 -# CHECK-NEXT: offset: 0x000002FC +# CHECK-NEXT: offset: 0x2FC # CHECK-NEXT: align: 0 -# CHECK-NEXT: reloff: 0x00000388 +# CHECK-NEXT: reloff: 0x388 # CHECK-NEXT: nreloc: 0 -# CHECK-NEXT: flags: 0x00000013 -# CHECK-NEXT: reserved1: 0x00000000 -# CHECK-NEXT: reserved2: 0x00000000 -# CHECK-NEXT: reserved3: 0x00000000 +# CHECK-NEXT: flags: 0x13 +# CHECK-NEXT: reserved1: 0x0 +# CHECK-NEXT: reserved2: 0x0 +# CHECK-NEXT: reserved3: 0x0 # CHECK-NEXT: content: {{.*}} diff --git a/llvm/test/ObjectYAML/MachO/weak_bind_opcode.yaml b/llvm/test/ObjectYAML/MachO/weak_bind_opcode.yaml index bda4386..f3a0239 100644 --- a/llvm/test/ObjectYAML/MachO/weak_bind_opcode.yaml +++ b/llvm/test/ObjectYAML/MachO/weak_bind_opcode.yaml @@ -107,7 +107,7 @@ LinkEditData: #CHECK: Imm: 1 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB #CHECK: Imm: 2 -#CHECK: ULEBExtraData: [ 0x0000000000000000 ] +#CHECK: ULEBExtraData: [ 0x0 ] #CHECK: - Opcode: BIND_OPCODE_DO_BIND #CHECK: Imm: 0 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM diff --git a/llvm/test/ObjectYAML/wasm/code_section.yaml b/llvm/test/ObjectYAML/wasm/code_section.yaml index dad75e0..666dfe7 100644 --- a/llvm/test/ObjectYAML/wasm/code_section.yaml +++ b/llvm/test/ObjectYAML/wasm/code_section.yaml @@ -55,7 +55,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: TYPE # CHECK: Signatures: @@ -73,10 +73,10 @@ Sections: # CHECK: Relocations: # CHECK: - Type: R_WASM_TABLE_INDEX_SLEB # CHECK: Index: 0 -# CHECK: Offset: 0x00000006 +# CHECK: Offset: 0x6 # CHECK: - Type: R_WASM_FUNCTION_INDEX_LEB # CHECK: Index: 1 -# CHECK: Offset: 0x00000025 +# CHECK: Offset: 0x25 # CHECK: Functions: # CHECK: - Index: 0 # CHECK: Locals: diff --git a/llvm/test/ObjectYAML/wasm/custom_section.yaml b/llvm/test/ObjectYAML/wasm/custom_section.yaml index 37cdddb..934400c 100644 --- a/llvm/test/ObjectYAML/wasm/custom_section.yaml +++ b/llvm/test/ObjectYAML/wasm/custom_section.yaml @@ -9,7 +9,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: CUSTOM # CHECK: Name: foo diff --git a/llvm/test/ObjectYAML/wasm/data_section.yaml b/llvm/test/ObjectYAML/wasm/data_section.yaml index fce4be16..957687e 100644 --- a/llvm/test/ObjectYAML/wasm/data_section.yaml +++ b/llvm/test/ObjectYAML/wasm/data_section.yaml @@ -44,17 +44,17 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: DATA # CHECK-NEXT: Relocations: # CHECK-NEXT: - Type: R_WASM_MEMORY_ADDR_I32 # CHECK-NEXT: Index: 0 -# CHECK-NEXT: Offset: 0x00000006 +# CHECK-NEXT: Offset: 0x6 # CHECK-NEXT: Addend: 8 # CHECK-NEXT: - Type: R_WASM_MEMORY_ADDR_I32 # CHECK-NEXT: Index: 0 -# CHECK-NEXT: Offset: 0x00000006 +# CHECK-NEXT: Offset: 0x6 # CHECK-NEXT: Addend: -6 # CHECK-NEXT: Segments: # CHECK-NEXT: - SectionOffset: 6 diff --git a/llvm/test/ObjectYAML/wasm/dylink_section.yaml b/llvm/test/ObjectYAML/wasm/dylink_section.yaml index 9cc3f7d..76bb727 100644 --- a/llvm/test/ObjectYAML/wasm/dylink_section.yaml +++ b/llvm/test/ObjectYAML/wasm/dylink_section.yaml @@ -14,7 +14,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: CUSTOM # CHECK: Name: dylink diff --git a/llvm/test/ObjectYAML/wasm/elem_section.yaml b/llvm/test/ObjectYAML/wasm/elem_section.yaml index f3f81ba..e60db7d 100644 --- a/llvm/test/ObjectYAML/wasm/elem_section.yaml +++ b/llvm/test/ObjectYAML/wasm/elem_section.yaml @@ -26,7 +26,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: ELEM # CHECK: Segments: diff --git a/llvm/test/ObjectYAML/wasm/event_section.yaml b/llvm/test/ObjectYAML/wasm/event_section.yaml index 5c64cc8..ddeabd6 100644 --- a/llvm/test/ObjectYAML/wasm/event_section.yaml +++ b/llvm/test/ObjectYAML/wasm/event_section.yaml @@ -49,7 +49,7 @@ Sections: # CHECK: --- !WASM # CHECK-NEXT: FileHeader: -# CHECK-NEXT: Version: 0x00000001 +# CHECK-NEXT: Version: 0x1 # CHECK-NEXT: Sections: # CHECK-NEXT: - Type: TYPE # CHECK-NEXT: Signatures: @@ -73,7 +73,7 @@ Sections: # CHECK-NEXT: Relocations: # CHECK-NEXT: - Type: R_WASM_EVENT_INDEX_LEB # CHECK-NEXT: Index: 1 -# CHECK-NEXT: Offset: 0x00000006 +# CHECK-NEXT: Offset: 0x6 # CHECK-NEXT: Functions: # CHECK-NEXT: - Index: 0 # CHECK-NEXT: Locals: diff --git a/llvm/test/ObjectYAML/wasm/export_section.yaml b/llvm/test/ObjectYAML/wasm/export_section.yaml index 4b3487c..fea410a 100644 --- a/llvm/test/ObjectYAML/wasm/export_section.yaml +++ b/llvm/test/ObjectYAML/wasm/export_section.yaml @@ -49,7 +49,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: EXPORT # CHECK: Exports: diff --git a/llvm/test/ObjectYAML/wasm/function_section.yaml b/llvm/test/ObjectYAML/wasm/function_section.yaml index 8bfe4fa..4a57c4d 100644 --- a/llvm/test/ObjectYAML/wasm/function_section.yaml +++ b/llvm/test/ObjectYAML/wasm/function_section.yaml @@ -25,7 +25,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: FUNCTION # CHECK: FunctionTypes: [ 1, 0 ] diff --git a/llvm/test/ObjectYAML/wasm/global_section.yaml b/llvm/test/ObjectYAML/wasm/global_section.yaml index 73e50b5..e330b07 100644 --- a/llvm/test/ObjectYAML/wasm/global_section.yaml +++ b/llvm/test/ObjectYAML/wasm/global_section.yaml @@ -14,7 +14,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: GLOBAL # CHECK: Globals: diff --git a/llvm/test/ObjectYAML/wasm/header.yaml b/llvm/test/ObjectYAML/wasm/header.yaml index c4be4c8..a182d3e 100644 --- a/llvm/test/ObjectYAML/wasm/header.yaml +++ b/llvm/test/ObjectYAML/wasm/header.yaml @@ -5,5 +5,5 @@ FileHeader: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: ... diff --git a/llvm/test/ObjectYAML/wasm/import_memory_shared.yaml b/llvm/test/ObjectYAML/wasm/import_memory_shared.yaml index b6ca9fa..087ce84 100644 --- a/llvm/test/ObjectYAML/wasm/import_memory_shared.yaml +++ b/llvm/test/ObjectYAML/wasm/import_memory_shared.yaml @@ -23,7 +23,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: IMPORT # CHECK: Imports: @@ -32,6 +32,6 @@ Sections: # CHECK: Kind: MEMORY # CHECK: Memory: # CHECK: Flags: [ HAS_MAX, IS_SHARED ] -# CHECK: Initial: 0x00000010 -# CHECK: Maximum: 0x00000011 +# CHECK: Initial: 0x10 +# CHECK: Maximum: 0x11 # CHECK: ... diff --git a/llvm/test/ObjectYAML/wasm/import_section.yaml b/llvm/test/ObjectYAML/wasm/import_section.yaml index 58dae6d..bc71e5f 100644 --- a/llvm/test/ObjectYAML/wasm/import_section.yaml +++ b/llvm/test/ObjectYAML/wasm/import_section.yaml @@ -41,7 +41,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: IMPORT # CHECK: Imports: @@ -59,8 +59,8 @@ Sections: # CHECK: Kind: MEMORY # CHECK: Memory: # CHECK: Flags: [ HAS_MAX ] -# CHECK: Initial: 0x00000010 -# CHECK: Maximum: 0x00000011 +# CHECK: Initial: 0x10 +# CHECK: Maximum: 0x11 # CHECK: - Module: foo # CHECK: Field: imported_table # CHECK: Kind: TABLE @@ -68,6 +68,6 @@ Sections: # CHECK: ElemType: FUNCREF # CHECK: Limits: # CHECK: Flags: [ HAS_MAX ] -# CHECK: Initial: 0x00000020 -# CHECK: Maximum: 0x00000022 +# CHECK: Initial: 0x20 +# CHECK: Maximum: 0x22 # CHECK: ... diff --git a/llvm/test/ObjectYAML/wasm/memory_section.yaml b/llvm/test/ObjectYAML/wasm/memory_section.yaml index 9ab0524..22ca724 100644 --- a/llvm/test/ObjectYAML/wasm/memory_section.yaml +++ b/llvm/test/ObjectYAML/wasm/memory_section.yaml @@ -12,12 +12,12 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: MEMORY # CHECK: Memories: # CHECK: - Flags: [ HAS_MAX ] -# CHECK: Initial: 0x00000002 -# CHECK: Maximum: 0x000000FF -# CHECK: - Initial: 0x00000003 +# CHECK: Initial: 0x2 +# CHECK: Maximum: 0xFF +# CHECK: - Initial: 0x3 # CHECK: ... diff --git a/llvm/test/ObjectYAML/wasm/start_section.yaml b/llvm/test/ObjectYAML/wasm/start_section.yaml index 754adea..69a5240 100644 --- a/llvm/test/ObjectYAML/wasm/start_section.yaml +++ b/llvm/test/ObjectYAML/wasm/start_section.yaml @@ -27,7 +27,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: START # CHECK: StartFunction: 1 diff --git a/llvm/test/ObjectYAML/wasm/table_section.yaml b/llvm/test/ObjectYAML/wasm/table_section.yaml index 3ce425b..18cff6d 100644 --- a/llvm/test/ObjectYAML/wasm/table_section.yaml +++ b/llvm/test/ObjectYAML/wasm/table_section.yaml @@ -14,7 +14,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: TABLE # CHECK: Tables: @@ -22,6 +22,6 @@ Sections: # CHECK: ElemType: FUNCREF # CHECK: Limits: # CHECK: Flags: [ HAS_MAX ] -# CHECK: Initial: 0x00000010 -# CHECK: Maximum: 0x00000011 +# CHECK: Initial: 0x10 +# CHECK: Maximum: 0x11 # CHECK: ... diff --git a/llvm/test/ObjectYAML/wasm/type_section.yaml b/llvm/test/ObjectYAML/wasm/type_section.yaml index beb3a16..271e213 100644 --- a/llvm/test/ObjectYAML/wasm/type_section.yaml +++ b/llvm/test/ObjectYAML/wasm/type_section.yaml @@ -20,7 +20,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: TYPE # CHECK: Signatures: diff --git a/llvm/test/ObjectYAML/wasm/weak_symbols.yaml b/llvm/test/ObjectYAML/wasm/weak_symbols.yaml index 82bc70c..ed39a7d 100644 --- a/llvm/test/ObjectYAML/wasm/weak_symbols.yaml +++ b/llvm/test/ObjectYAML/wasm/weak_symbols.yaml @@ -52,7 +52,7 @@ Sections: ... # CHECK: --- !WASM # CHECK: FileHeader: -# CHECK: Version: 0x00000001 +# CHECK: Version: 0x1 # CHECK: Sections: # CHECK: - Type: EXPORT # CHECK: Exports: |