]> granicus.if.org Git - llvm/commit
Add llvm::object::getELFSectionTypeName().
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 2 May 2017 14:04:52 +0000 (14:04 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 2 May 2017 14:04:52 +0000 (14:04 +0000)
commit14c3bbaef31e339487d855555d147a7c41580280
treed8306a31674634344df269a18a743fab9171b1ee
parent6d1bf4ddc4f6d12ba0b835be5bd9069a21acbd62
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
include/llvm/Object/ELF.h
lib/Object/ELF.cpp
test/MC/ELF/section-numeric-invalid-type.s
tools/llvm-readobj/ELFDumper.cpp