summaryrefslogtreecommitdiff
path: root/tools/llvm-objdump/MachODump.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-07-19 00:17:40 +0000
committerBill Wendling <isanbard@gmail.com>2012-07-19 00:17:40 +0000
commitf59083cc029b1f09dec7cc62de070846b2c55bb8 (patch)
treef95c3c0f4ab58e46d83e6cc8b2859bf6a20f6849 /tools/llvm-objdump/MachODump.cpp
parent2127c9b93a5fd5f04ffaced84bde0696bd57fce6 (diff)
downloadllvm-f59083cc029b1f09dec7cc62de070846b2c55bb8.tar.gz
llvm-f59083cc029b1f09dec7cc62de070846b2c55bb8.tar.bz2
llvm-f59083cc029b1f09dec7cc62de070846b2c55bb8.tar.xz
Remove tabs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160480 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-objdump/MachODump.cpp')
-rw-r--r--tools/llvm-objdump/MachODump.cpp28
1 files changed, 13 insertions, 15 deletions
diff --git a/tools/llvm-objdump/MachODump.cpp b/tools/llvm-objdump/MachODump.cpp
index ed4f2b6432..1feea421f2 100644
--- a/tools/llvm-objdump/MachODump.cpp
+++ b/tools/llvm-objdump/MachODump.cpp
@@ -508,21 +508,19 @@ void llvm::DisassembleInputMachO(StringRef Filename) {
Sections[SectIdx].getSize(SectSize);
uint64_t InstSize;
for (uint64_t Index = 0; Index < SectSize; Index += InstSize) {
- MCInst Inst;
-
- if (DisAsm->getInstruction(Inst, InstSize, memoryObject, Index,
- DebugOut, nulls())) {
- outs() << format("%8" PRIx64 ":\t", SectAddress + Index);
-
- DumpBytes(StringRef(Bytes.data() + Index, InstSize));
- IP->printInst(&Inst, outs(), "");
-
- outs() << "\n";
- } else {
- errs() << "llvm-objdump: warning: invalid instruction encoding\n";
- if (InstSize == 0)
- InstSize = 1; // skip illegible bytes
- }
+ MCInst Inst;
+
+ if (DisAsm->getInstruction(Inst, InstSize, memoryObject, Index,
+ DebugOut, nulls())) {
+ outs() << format("%8" PRIx64 ":\t", SectAddress + Index);
+ DumpBytes(StringRef(Bytes.data() + Index, InstSize));
+ IP->printInst(&Inst, outs(), "");
+ outs() << "\n";
+ } else {
+ errs() << "llvm-objdump: warning: invalid instruction encoding\n";
+ if (InstSize == 0)
+ InstSize = 1; // skip illegible bytes
+ }
}
}