Don't disassemble symbols with an unknown address or size.

Patch by Nico Rieck!

llvm-svn: 178678
This commit is contained in:
Eric Christopher 2013-04-03 18:31:23 +00:00
parent 8d67ab4f70
commit 2d4b3a6b94
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
if (!error(i->containsSymbol(*si, contains)) && contains) {
uint64_t Address;
if (error(si->getAddress(Address))) break;
if (Address == UnknownAddressOrSize) continue;
Address -= SectionAddr;
StringRef Name;