Add the -mcpu= option to llvm-objdump for use with the disassemblers.

Also make the disassembler created with the Mach-O parser (the -m option)
pick up the Target specific attributes specified with -mattr option.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kevin Enderby
2014-08-06 23:24:41 +00:00
parent 41d6599bb1
commit 75d423feed
5 changed files with 36 additions and 4 deletions

View File

@ -25,6 +25,8 @@ namespace object {
extern cl::opt<std::string> TripleName;
extern cl::opt<std::string> ArchName;
extern cl::opt<std::string> MCPU;
extern cl::list<std::string> MAttrs;
// Various helper functions.
bool error(std::error_code ec);