Object, COFF: Move the VirtualSize/SizeOfRawData logic to getSectionSize
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 9 Oct 2014 08:42:31 +0000 (08:42 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 9 Oct 2014 08:42:31 +0000 (08:42 +0000)
commit06f1f357e360c3a0bcc703182878583a98120f65
tree585df3350fff07f81d4cc6acff7afa5bb29cc66e
parent340b5b9ad7dc680dca71208bb7de6a4e5dab5293
Object, COFF: Move the VirtualSize/SizeOfRawData logic to getSectionSize

While getSectionContents was updated to do the right thing,
getSectionSize wasn't.  Move the logic to getSectionSize and leverage it
from getSectionContents.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219391 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
lib/Object/COFFObjectFile.cpp