OSDN Git Service

Use asserts for checks that should never fail.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 29 Jun 2015 23:55:05 +0000 (23:55 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 29 Jun 2015 23:55:05 +0000 (23:55 +0000)
commit2edab1ac31e1633eb5f9e07171f72b47fb2b1c8d
tree115522a3cb7d6bf099aaa11e6750437ceb991bac
parenta74341308f19b7cd1691eddb3bd7be99fa8204a6
Use asserts for checks that should never fail.

If a section is not SHT_REL or SHT_RELA, we never create a valid iterator,
so the getRelocation* methods should always see a section with the correct type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241023 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFObjectFile.h