Skip to content

Commit

Permalink
[llvm-readobj][mips] Remove non-standard --misp-xxx flags
Browse files Browse the repository at this point in the history
llvm-readobj "non-standard" flags `--mips-plt-got`, `--mips-abi-flags`,
`--mips-reginfo`, and `--mips-options` are superseded by the `--arch-specific`
flag and can be removed now.

llvm-svn: 373590
  • Loading branch information
atanasyan committed Oct 3, 2019
1 parent afe7197 commit bf33342
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions llvm/tools/llvm-readobj/llvm-readobj.cpp
Expand Up @@ -237,23 +237,6 @@ namespace opts {
cl::alias ArchSpecifcInfoShort("A", cl::desc("Alias for --arch-specific"),
cl::aliasopt(ArchSpecificInfo), cl::NotHidden);

// --mips-plt-got
cl::opt<bool>
MipsPLTGOT("mips-plt-got",
cl::desc("Display the MIPS GOT and PLT GOT sections"));

// --mips-abi-flags
cl::opt<bool> MipsABIFlags("mips-abi-flags",
cl::desc("Display the MIPS.abiflags section"));

// --mips-reginfo
cl::opt<bool> MipsReginfo("mips-reginfo",
cl::desc("Display the MIPS .reginfo section"));

// --mips-options
cl::opt<bool> MipsOptions("mips-options",
cl::desc("Display the MIPS .MIPS.options section"));

// --coff-imports
cl::opt<bool>
COFFImports("coff-imports", cl::desc("Display the PE/COFF import table"));
Expand Down Expand Up @@ -529,16 +512,6 @@ static void dumpObject(const ObjectFile *Obj, ScopedPrinter &Writer,
Dumper->printMipsPLTGOT();
}
}
if (isMipsArch(Obj->getArch())) {
if (opts::MipsPLTGOT)
Dumper->printMipsPLTGOT();
if (opts::MipsABIFlags)
Dumper->printMipsABIFlags();
if (opts::MipsReginfo)
Dumper->printMipsReginfo();
if (opts::MipsOptions)
Dumper->printMipsOptions();
}
if (opts::SectionGroups)
Dumper->printGroupSections();
if (opts::HashHistogram)
Expand Down

0 comments on commit bf33342

Please sign in to comment.