summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-10-01 01:31:15 +0000
committerFangrui Song <maskray@google.com>2019-10-01 01:31:15 +0000
commit2d92c8844e57b590f72abb68cee8eb310c3c5018 (patch)
tree3a9e27e76c9fc0f923338ec84e1dab30cf614003
parent5dc49a8374cb13b7c0dd1977dd2e015333a906d8 (diff)
downloadbcm5719-llvm-2d92c8844e57b590f72abb68cee8eb310c3c5018.tar.gz
bcm5719-llvm-2d92c8844e57b590f72abb68cee8eb310c3c5018.zip
[llvm-readobj/llvm-readelf] Delete --arm-attributes (alias for --arch-specific)
D68110 added --arch-specific (supported by GNU readelf) and made --arm-attributes an alias for it. The tests were later migrated to use --arch-specific. Note, llvm-readelf --arch-specific currently just uses llvm-readobj style output for ARM attributes. The readelf-style output is not implemented. Reviewed By: compnerd, kongyi, rupprecht Differential Revision: https://reviews.llvm.org/D68196 llvm-svn: 373291
-rw-r--r--llvm/docs/CommandGuide/llvm-readelf.rst4
-rw-r--r--llvm/docs/CommandGuide/llvm-readobj.rst4
-rw-r--r--llvm/test/tools/llvm-readobj/ARM/attribute-conformance-1.s2
-rw-r--r--llvm/test/tools/llvm-readobj/ARM/attribute-conformance-2.s2
-rw-r--r--llvm/tools/llvm-readobj/llvm-readobj.cpp2
5 files changed, 4 insertions, 10 deletions
diff --git a/llvm/docs/CommandGuide/llvm-readelf.rst b/llvm/docs/CommandGuide/llvm-readelf.rst
index efb3f6a9c30..2868d0b5989 100644
--- a/llvm/docs/CommandGuide/llvm-readelf.rst
+++ b/llvm/docs/CommandGuide/llvm-readelf.rst
@@ -28,9 +28,9 @@ OPTIONS
Display the address-significance table.
-.. option:: --arm-attributes
+.. option:: --arch-specific, -A
- Display the ARM attributes section. Only applicable for ARM architectures.
+ Display architecture-specific information, e.g. the ARM attributes section on ARM.
.. option:: --color
diff --git a/llvm/docs/CommandGuide/llvm-readobj.rst b/llvm/docs/CommandGuide/llvm-readobj.rst
index ece79797e21..ea1b22d6d9f 100644
--- a/llvm/docs/CommandGuide/llvm-readobj.rst
+++ b/llvm/docs/CommandGuide/llvm-readobj.rst
@@ -144,9 +144,9 @@ ELF SPECIFIC OPTIONS
The following options are implemented only for the ELF file format.
-.. option:: --arm-attributes
+.. option:: --arch-specific, -A
- Display the ARM attributes section. Only applicable for ARM architectures.
+ Display architecture-specific information, e.g. the ARM attributes section on ARM.
.. option:: --demangle, -C
diff --git a/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-1.s b/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-1.s
index 0379a0ed204..2ceaca2cced 100644
--- a/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-1.s
+++ b/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-1.s
@@ -3,8 +3,6 @@
@ RUN: | llvm-readobj --arch-specific - | FileCheck %s --check-prefix=CHECK-OBJ
@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \
@ RUN: | llvm-readobj -A - | FileCheck %s --check-prefix=CHECK-OBJ
-@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \
-@ RUN: | llvm-readobj --arm-attributes - | FileCheck %s --check-prefix=CHECK-OBJ
.eabi_attribute Tag_conformance, "0"
@CHECK: .eabi_attribute 67, "0"
@CHECK-OBJ: Tag: 67
diff --git a/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-2.s b/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-2.s
index 745d56c0db9..2ac459aa237 100644
--- a/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-2.s
+++ b/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-2.s
@@ -3,8 +3,6 @@
@ RUN: | llvm-readobj --arch-specific - | FileCheck %s --check-prefix=CHECK-OBJ
@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \
@ RUN: | llvm-readobj -A - | FileCheck %s --check-prefix=CHECK-OBJ
-@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \
-@ RUN: | llvm-readobj --arm-attributes - | FileCheck %s --check-prefix=CHECK-OBJ
.eabi_attribute Tag_conformance, "A.long--non numeric oddity...!!"
@CHECK: .eabi_attribute 67, "A.long--non numeric oddity...!!"
@CHECK-OBJ: Tag: 67
diff --git a/llvm/tools/llvm-readobj/llvm-readobj.cpp b/llvm/tools/llvm-readobj/llvm-readobj.cpp
index 03f2ad24636..5919a7eed3e 100644
--- a/llvm/tools/llvm-readobj/llvm-readobj.cpp
+++ b/llvm/tools/llvm-readobj/llvm-readobj.cpp
@@ -236,8 +236,6 @@ namespace opts {
cl::desc("Displays architecture-specific information, if there is any."));
cl::alias ArchSpecifcInfoShort("A", cl::desc("Alias for --arch-specific"),
cl::aliasopt(ArchSpecificInfo), cl::NotHidden);
- cl::alias ARMAttributes("arm-attributes", cl::desc("Alias for --arch-specific"),
- cl::aliasopt(ArchSpecificInfo), cl::Hidden);
// --mips-plt-got
cl::opt<bool>
OpenPOWER on IntegriCloud