diff options
author | Kevin Enderby <enderby@apple.com> | 2012-05-15 18:57:14 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2012-05-15 18:57:14 +0000 |
commit | edd5872f3379bcca2a8ef6007d5fdfc1cbf1519b (patch) | |
tree | 101af27680690f3b19f937768a0e145f2bdb598c /llvm/tools/llvm-objdump | |
parent | c364d68bf2e17a2b60c37388210c0797a9fbf7e2 (diff) | |
download | bcm5719-llvm-edd5872f3379bcca2a8ef6007d5fdfc1cbf1519b.tar.gz bcm5719-llvm-edd5872f3379bcca2a8ef6007d5fdfc1cbf1519b.zip |
Fixed a bug in llvm-objdump when disassembling using -macho option for a binary
that has more than one symbol. The last symbol was not being disassembled to
the end of the section.
llvm-svn: 156840
Diffstat (limited to 'llvm/tools/llvm-objdump')
-rw-r--r-- | llvm/tools/llvm-objdump/MachODump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp index 0e7f3fdebeb..60c33f27892 100644 --- a/llvm/tools/llvm-objdump/MachODump.cpp +++ b/llvm/tools/llvm-objdump/MachODump.cpp @@ -430,7 +430,7 @@ void llvm::DisassembleInputMachO(StringRef Filename) { // Stop disassembling either at the beginning of the next symbol or at // the end of the section. - bool containsNextSym = true; + bool containsNextSym = false; uint64_t NextSym = 0; uint64_t NextSymIdx = SymIdx+1; while (Symbols.size() > NextSymIdx) { |