[llvm] r178678 - Don't disassemble symbols with an unknown address or size.
Eric Christopher
echristo at gmail.com
Wed Apr 3 11:31:23 PDT 2013
Author: echristo
Date: Wed Apr 3 13:31:23 2013
New Revision: 178678
URL: http://llvm.org/viewvc/llvm-project?rev=178678&view=rev
Log:
Don't disassemble symbols with an unknown address or size.
Patch by Nico Rieck!
Modified:
llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Modified: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp?rev=178678&r1=178677&r2=178678&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp Wed Apr 3 13:31:23 2013
@@ -228,6 +228,7 @@ static void DisassembleObject(const Obje
if (!error(i->containsSymbol(*si, contains)) && contains) {
uint64_t Address;
if (error(si->getAddress(Address))) break;
+ if (Address == UnknownAddressOrSize) continue;
Address -= SectionAddr;
StringRef Name;
More information about the llvm-commits
mailing list