llvm.org GIT mirror llvm / 84e5dbf
[llvm-objdump] Add -x --all-headers options Reviewers: paulsemel, echristo Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D48622 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335785 91177308-0d34-0410-b5e6-96231b3b80d8 Fangrui Song 1 year, 4 months ago
2 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
6565
6666 using namespace llvm;
6767 using namespace object;
68
69 cl::opt
70 llvm::AllHeaders("all-headers",
71 cl::desc("Display all available header information"));
72 static cl::alias AllHeadersShort("x", cl::desc("Alias for --all-headers"),
73 cl::aliasopt(AllHeaders));
6874
6975 static cl::list
7076 InputFilenames(cl::Positional, cl::desc(""),cl::ZeroOrMore);
22332239 if (InputFilenames.size() == 0)
22342240 InputFilenames.push_back("a.out");
22352241
2242 if (AllHeaders)
2243 PrivateHeaders = Relocations = SectionHeaders = SymbolTable = true;
2244
22362245 if (DisassembleAll || PrintSource || PrintLines)
22372246 Disassemble = true;
22382247 if (!Disassemble
3131 extern cl::opt MCPU;
3232 extern cl::list MAttrs;
3333 extern cl::list FilterSections;
34 extern cl::opt AllHeaders;
3435 extern cl::opt Disassemble;
3536 extern cl::opt DisassembleAll;
3637 extern cl::opt NoShowRawInsn;