1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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 99a330354d
commit 4dc4bfd311

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;