diff options
author | Rui Ueyama <ruiu@google.com> | 2017-10-25 22:03:21 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-10-25 22:03:21 +0000 |
commit | 8e38ea8b9e09f826677409f7eb9feb142bce13f9 (patch) | |
tree | 4500f53bbba0e4db6f379ddc9901921caa047739 /llvm/lib/Transforms/Utils/SplitModule.cpp | |
parent | fbd17e17f53c07e410a1c53908579a7070080d9f (diff) | |
download | llvm-8e38ea8b9e09f826677409f7eb9feb142bce13f9.zip llvm-8e38ea8b9e09f826677409f7eb9feb142bce13f9.tar.gz llvm-8e38ea8b9e09f826677409f7eb9feb142bce13f9.tar.bz2 |
Unassign sections if they are "assigned" to /DISCARD/.
"/DISCARD/" is a special section name in the linker script to discard
input sections. Previously, we handled it as if it were a real section,
so an input section can be assigned but dead. However, allowing sections
to be
- assigned and alive (will be emitted),
- not assigned and dead (removed), or
- assigned but dead (???)
feels logically wrong and practically error-prone. This patch removes
the last combination of the states.
llvm-svn: 316622
Diffstat (limited to 'llvm/lib/Transforms/Utils/SplitModule.cpp')
0 files changed, 0 insertions, 0 deletions