[llvm-branch-commits] [llvm] 45ef053 - [llvm-readobj][test] - Remove excessive YAML fields from tests.
Georgii Rymar via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jan 15 01:57:49 PST 2021
Author: Georgii Rymar
Date: 2021-01-15T12:46:39+03:00
New Revision: 45ef053bd70952d35e9bea58fc4af11d6e507ce2
URL: https://github.com/llvm/llvm-project/commit/45ef053bd70952d35e9bea58fc4af11d6e507ce2
DIFF: https://github.com/llvm/llvm-project/commit/45ef053bd70952d35e9bea58fc4af11d6e507ce2.diff
LOG: [llvm-readobj][test] - Remove excessive YAML fields from tests.
This removes excessive YAML keys from `SHT_GNU_verdef` sections.
Those keys are set by default.
Differential revision: https://reviews.llvm.org/D94660
Added:
Modified:
llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
llvm/test/tools/llvm-readobj/ELF/verdef-invalid.test
llvm/test/tools/llvm-readobj/ELF/versioninfo.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test b/llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
index d8ad0200316e..edb12d861862 100644
--- a/llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
+++ b/llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
@@ -308,16 +308,10 @@ Sections:
AddressAlign: 0x4
Info: 0x2
Entries:
- - Version: 1
- Flags: 0
- VersionNdx: 2
- Hash: 0
+ - VersionNdx: 2
Names:
- Default
- - Version: 1
- Flags: 0
- VersionNdx: 3
- Hash: 0
+ - VersionNdx: 3
Names:
- NonDefault
DynamicSymbols:
diff --git a/llvm/test/tools/llvm-readobj/ELF/verdef-invalid.test b/llvm/test/tools/llvm-readobj/ELF/verdef-invalid.test
index aa9b7b86e227..e7c93efed1a5 100644
--- a/llvm/test/tools/llvm-readobj/ELF/verdef-invalid.test
+++ b/llvm/test/tools/llvm-readobj/ELF/verdef-invalid.test
@@ -107,11 +107,7 @@ Sections:
Link: .dynstr
Info: 0x1
Entries:
- - Version: 1
- Flags: 0
- VersionNdx: 0
- Hash: 0
- Names:
+ - Names:
- FOO
ShSize: 1
DynamicSymbols:
@@ -137,11 +133,7 @@ Sections:
Link: .dynstr
Info: 0x1
Entries:
- - Version: 1
- Flags: 0
- VersionNdx: 0
- Hash: 0
- Names:
+ - Names:
- FOO
ShSize: 21
DynamicSymbols:
@@ -181,11 +173,7 @@ Sections:
Link: .strtab
Info: 0x1
Entries:
- - Version: 1
- Flags: 0
- VersionNdx: 0
- Hash: 0
- Names:
+ - Names:
- FOO
- Name: .strtab
Type: SHT_STRTAB
@@ -213,11 +201,7 @@ Sections:
Link: .dynstr
Info: 0x1
Entries:
- - Version: 1
- Flags: 0
- VersionNdx: 0
- Hash: 0
- Names:
+ - Names:
- FOO
DynamicSymbols:
- Name: foo
@@ -266,10 +250,7 @@ Sections:
Link: .dynstr
Info: 0x1
Entries:
- - Version: 0xfefe
- Flags: 0
- VersionNdx: 0
- Hash: 0
+ - Version: 0xfefe
Names: []
DynamicSymbols:
- Name: foo
diff --git a/llvm/test/tools/llvm-readobj/ELF/versioninfo.test b/llvm/test/tools/llvm-readobj/ELF/versioninfo.test
index 071ad9a1a28f..38f1c6a02973 100644
--- a/llvm/test/tools/llvm-readobj/ELF/versioninfo.test
+++ b/llvm/test/tools/llvm-readobj/ELF/versioninfo.test
@@ -27,38 +27,23 @@ Sections:
AddressAlign: 0x0000000000000004
Info: 0x0000000000000006
Entries:
- - Version: 1
- Flags: 0
- VersionNdx: 0
- Hash: 0
- Names:
+ - Names:
- VERSION1
- - Version: 1
- Flags: 1
- VersionNdx: 0
- Hash: 0
+ - Flags: 1
Names:
- VERSION1
- - Version: 1
- Flags: 2
- VersionNdx: 0
- Hash: 0
+ - Flags: 2
Names:
- VERSION1
- - Version: 1
- Flags: 4
- VersionNdx: 0
- Hash: 0
+ - Flags: 4
Names:
- VERSION1
- - Version: 1
- Flags: 7
+ - Flags: 7
VersionNdx: 2
Hash: 175630257
Names:
- VERSION1
- - Version: 1
- Flags: 8
+ - Flags: 8
VersionNdx: 3
Hash: 175630258
Names:
More information about the llvm-branch-commits
mailing list