commit | 14c3bbaef31e339487d855555d147a7c41580280 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Tue May 02 14:04:52 2017 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Tue May 02 14:04:52 2017 +0000 |
tree | d8306a31674634344df269a18a743fab9171b1ee | |
parent | 6d1bf4ddc4f6d12ba0b835be5bd9069a21acbd62 [diff] |
Add llvm::object::getELFSectionTypeName(). This is motivated by https://reviews.llvm.org/D32488 where I am trying to add printing of the section type for incompatible sections to LLD error messages. This patch allows us to use the same code in llvm-readobj and LLD instead of duplicating the function inside LLD. Patch by Alexander Richardson! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301921 91177308-0d34-0410-b5e6-96231b3b80d8