mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Slightly refactor things for llvm-objdump and the -macho option so it can be used with
options other than just -disassemble so that universal files can be used with other options combined with -arch options. No functional change to existing options and use. One test case added for the additional functionality with a universal file an a -arch option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,13 +26,20 @@ extern cl::opt<std::string> TripleName;
|
||||
extern cl::opt<std::string> ArchName;
|
||||
extern cl::opt<std::string> MCPU;
|
||||
extern cl::list<std::string> MAttrs;
|
||||
extern cl::opt<bool> Disassemble;
|
||||
extern cl::opt<bool> NoShowRawInsn;
|
||||
extern cl::opt<bool> PrivateHeaders;
|
||||
extern cl::opt<bool> ExportsTrie;
|
||||
extern cl::opt<bool> Rebase;
|
||||
extern cl::opt<bool> Bind;
|
||||
extern cl::opt<bool> LazyBind;
|
||||
extern cl::opt<bool> WeakBind;
|
||||
|
||||
// Various helper functions.
|
||||
bool error(std::error_code ec);
|
||||
bool RelocAddressLess(object::RelocationRef a, object::RelocationRef b);
|
||||
void DumpBytes(StringRef bytes);
|
||||
void DisassembleInputMachO(StringRef Filename);
|
||||
void ParseInputMachO(StringRef Filename);
|
||||
void printCOFFUnwindInfo(const object::COFFObjectFile* o);
|
||||
void printMachOUnwindInfo(const object::MachOObjectFile* o);
|
||||
void printMachOExportsTrie(const object::MachOObjectFile* o);
|
||||
@@ -43,6 +50,11 @@ void printMachOWeakBindTable(const object::MachOObjectFile* o);
|
||||
void printELFFileHeader(const object::ObjectFile *o);
|
||||
void printCOFFFileHeader(const object::ObjectFile *o);
|
||||
void printMachOFileHeader(const object::ObjectFile *o);
|
||||
void printExportsTrie(const object::ObjectFile *o);
|
||||
void printRebaseTable(const object::ObjectFile *o);
|
||||
void printBindTable(const object::ObjectFile *o);
|
||||
void printLazyBindTable(const object::ObjectFile *o);
|
||||
void printWeakBindTable(const object::ObjectFile *o);
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
|
Reference in New Issue
Block a user