[yaml2elf] Replace error message by assert call in writeSectionContent methods
authorSimon Atanasyan <simon@atanasyan.com>
Fri, 8 May 2015 07:05:04 +0000 (07:05 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Fri, 8 May 2015 07:05:04 +0000 (07:05 +0000)
commitb1e759524dd94f7ce1e24935daed8383927e96c1
treedc2cf1d7f4629ebe31ced2120583532acdea2a3a
parentdfa21e11005799deebcebac4fbc12ea918cecf16
[yaml2elf] Replace error message by assert call in writeSectionContent methods

Now caller of ELFState::writeSectionContent() methods is responsible to check
a section type and selects an appropriate writeSectionContent method.
So unexpected section type inside writeSectionContent method indicates
a wrong usage of the method and should be guarded by assert.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236808 91177308-0d34-0410-b5e6-96231b3b80d8
tools/yaml2obj/yaml2elf.cpp