Object, COFF: Infer symbol sizes from adjacent symbols
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 6 Nov 2014 08:10:41 +0000 (08:10 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 6 Nov 2014 08:10:41 +0000 (08:10 +0000)
commit42b17f97cf4a9c1b63e3c4e7c62a79bd024728d8
tree8fa3bb0e0ba41e897b653982f78e823e7e874a93
parenta67e1693fc2b6ad7fd505e0dc5b840202b07753a
Object, COFF: Infer symbol sizes from adjacent symbols

Use the position of the subsequent symbol in the object file to infer
the size of it's predecessor.  I hope to eventually remove whatever COFF
specific details from this little algorithm so that we can unify this
logic with what Mach-O does.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221444 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/COFFObjectFile.cpp
test/Object/nm-trivial-object.test