summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2015-03-28 20:44:05 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2015-03-28 20:44:05 +0000
commit1d0799455090824f80969a1516550e9151817740 (patch)
tree10839e544b806141f8efb97d2796c729ed62c8d3 /llvm/tools/llvm-objdump
parent6e9110abe923569e8abdf17f63658851e2f46ae3 (diff)
downloadbcm5719-llvm-1d0799455090824f80969a1516550e9151817740.tar.gz
bcm5719-llvm-1d0799455090824f80969a1516550e9151817740.zip
[Objdump] Pass the correct subtarget to printInst.
This fixes a bug I introduced in r233411. llvm-svn: 233484
Diffstat (limited to 'llvm/tools/llvm-objdump')
-rw-r--r--llvm/tools/llvm-objdump/MachODump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp
index 08573eeb0d2..43cf6671e61 100644
--- a/llvm/tools/llvm-objdump/MachODump.cpp
+++ b/llvm/tools/llvm-objdump/MachODump.cpp
@@ -3349,7 +3349,7 @@ static void DisassembleMachO(StringRef Filename, MachOObjectFile *MachOOF,
if (isThumb)
ThumbIP->printInst(&Inst, FormattedOS, AnnotationsStr, *ThumbSTI);
else
- IP->printInst(&Inst, FormattedOS, AnnotationsStr, *ThumbSTI);
+ IP->printInst(&Inst, FormattedOS, AnnotationsStr, *STI);
emitComments(CommentStream, CommentsToEmit, FormattedOS, *AsmInfo);
// Print debug info.
@@ -3408,7 +3408,7 @@ static void DisassembleMachO(StringRef Filename, MachOObjectFile *MachOOF,
outs() << "\t";
DumpBytes(ArrayRef<uint8_t>(Bytes.data() + Index, InstSize));
}
- IP->printInst(&Inst, outs(), "", *ThumbSTI);
+ IP->printInst(&Inst, outs(), "", *STI);
outs() << "\n";
} else {
unsigned int Arch = MachOOF->getArch();
OpenPOWER on IntegriCloud