diff options
author | Rui Ueyama <ruiu@google.com> | 2015-06-25 19:10:58 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-06-25 19:10:58 +0000 |
commit | fc510f4cf822b703bd307a8e3a19384b7a1ed37f (patch) | |
tree | 8e02b68c97a007e861bd0eefbc26b2f7866cb631 /lldb/scripts/Python | |
parent | 6bbffc4b973dda097b1f139a9c9ebf9d3a3ab514 (diff) | |
download | llvm-fc510f4cf822b703bd307a8e3a19384b7a1ed37f.zip llvm-fc510f4cf822b703bd307a8e3a19384b7a1ed37f.tar.gz llvm-fc510f4cf822b703bd307a8e3a19384b7a1ed37f.tar.bz2 |
COFF: Devirtualize mark(), markLive() and isCOMDAT().
Only SectionChunk can be dead-stripped. Previously,
all types of chunks implemented these functions,
but their functions were blank.
Likewise, only DefinedRegular and DefinedCOMDAT symbols
can be dead-stripped. markLive() function was implemented
for other symbol types, but they were blank.
I started thinking that the change I made in r240319 was
a mistake. I separated DefinedCOMDAT from DefinedRegular
because I thought that would make the code cleaner, but now
we want to handle them as the same type here. Maybe we
should roll it back.
This change should improve readability a bit as this removes
some dubious uses of reinterpret_cast. Previously, we
assumed that all COMDAT chunks are actually SectionChunks,
which was not very obvious.
llvm-svn: 240675
Diffstat (limited to 'lldb/scripts/Python')
0 files changed, 0 insertions, 0 deletions