mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
[objdump] Moving PrintImmHex out of MachODump and in to llvm-objdump and setting instprinter appropriately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -149,6 +149,10 @@ static cl::alias
|
||||
PrivateHeadersShort("p", cl::desc("Alias for --private-headers"),
|
||||
cl::aliasopt(PrivateHeaders));
|
||||
|
||||
cl::opt<bool>
|
||||
llvm::PrintImmHex("print-imm-hex",
|
||||
cl::desc("Use hex format for immediate values"));
|
||||
|
||||
static StringRef ToolName;
|
||||
static int ReturnValue = EXIT_SUCCESS;
|
||||
|
||||
@ -743,6 +747,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
||||
<< '\n';
|
||||
return;
|
||||
}
|
||||
IP->setPrintImmHex(PrintImmHex);
|
||||
PrettyPrinter &PIP = selectPrettyPrinter(Triple(TripleName));
|
||||
|
||||
StringRef Fmt = Obj->getBytesInAddress() > 4 ? "\t\t%016" PRIx64 ": " :
|
||||
|
Reference in New Issue
Block a user