mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Add the -no-show-raw-insn option to llvm-objdump, thus making it a bit more
conformant to binutils objdump. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168393 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -100,6 +100,10 @@ MAttrs("mattr",
|
|||||||
cl::desc("Target specific attributes"),
|
cl::desc("Target specific attributes"),
|
||||||
cl::value_desc("a1,+a2,-a3,..."));
|
cl::value_desc("a1,+a2,-a3,..."));
|
||||||
|
|
||||||
|
static cl::opt<bool>
|
||||||
|
NoShowRawInsn("no-show-raw-insn", cl::desc("When disassembling instructions, "
|
||||||
|
"do not print the instruction bytes."));
|
||||||
|
|
||||||
static StringRef ToolName;
|
static StringRef ToolName;
|
||||||
|
|
||||||
static bool error(error_code ec) {
|
static bool error(error_code ec) {
|
||||||
@@ -321,8 +325,11 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
|||||||
|
|
||||||
if (DisAsm->getInstruction(Inst, Size, memoryObject, Index,
|
if (DisAsm->getInstruction(Inst, Size, memoryObject, Index,
|
||||||
DebugOut, nulls())) {
|
DebugOut, nulls())) {
|
||||||
outs() << format("%8" PRIx64 ":\t", SectionAddr + Index);
|
outs() << format("%8" PRIx64 ":", SectionAddr + Index);
|
||||||
DumpBytes(StringRef(Bytes.data() + Index, Size));
|
if (!NoShowRawInsn) {
|
||||||
|
outs() << "\t";
|
||||||
|
DumpBytes(StringRef(Bytes.data() + Index, Size));
|
||||||
|
}
|
||||||
IP->printInst(&Inst, outs(), "");
|
IP->printInst(&Inst, outs(), "");
|
||||||
outs() << "\n";
|
outs() << "\n";
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user