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)
commit51ff559500c460f7f779019c1bfa964a1c2f223d
treedc544ef02b8c0a222b2d091bae16179747a525b1
parent03d2c51cf266f84be4988e8700f4954189087f1d
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.

llvm-svn: 221444
llvm/lib/Object/COFFObjectFile.cpp
llvm/test/Object/nm-trivial-object.test