Make computeSymbolSizes never fail.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 24 Jun 2015 19:57:32 +0000 (19:57 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 24 Jun 2015 19:57:32 +0000 (19:57 +0000)
commita3af347f38956c1bb7a539c3af131c41fc2d2d01
tree6c0d4936480439667aada778426c8f97d446558a
parentc9a4f3d5d9d46c84d23ec1e90b8b7aebcbb899f2
Make computeSymbolSizes never fail.

On ELF that was already the case since getting the size of a symbol
never fails.

On MachO and COFF we could fail trying to get the section of a symbol. But
we don't really need the section, just the section number to know if two
symbols are in the same section or not.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240580 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
include/llvm/Object/MachO.h
include/llvm/Object/SymbolSize.h
lib/Object/COFFObjectFile.cpp
lib/Object/MachOObjectFile.cpp
lib/Object/SymbolSize.cpp
tools/llvm-cxxdump/llvm-cxxdump.cpp
tools/llvm-rtdyld/llvm-rtdyld.cpp