COFF: Fix short import lib import name type bitshift
authorMartell Malone <martellmalone@gmail.com>
Sat, 1 Oct 2016 23:10:20 +0000 (23:10 +0000)
committerMartell Malone <martellmalone@gmail.com>
Sat, 1 Oct 2016 23:10:20 +0000 (23:10 +0000)
commit3a4d900039fda5ade30bfd99bccd76b14fbd1b8a
treead4d8ceff5e8d787ab35331c2b753c898ff6d770
parent7609f1c2695e185fbc0ce9505606f1a9e6a1da87
COFF: Fix short import lib import name type bitshift

As per the PE COFF spec (section 8.3, Import Name Type)
Offset: 18 Size 2 bits Name: Type
Offset: 20 Size 3 bits Name: Name Type

Offset: 20 added based on 18+2

Partially commited as rL279069

Differential Revision: https://reviews.llvm.org/D23540

llvm-svn: 283055
llvm/include/llvm/Support/COFF.h
llvm/test/tools/llvm-readobj/Inputs/library.lib
llvm/test/tools/llvm-readobj/coff-exports-implib.test