aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WindowsResource.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-06-10 00:38:55 +0000
committerRui Ueyama <ruiu@google.com>2017-06-10 00:38:55 +0000
commit1c837b5fb192bc54f9be5600fbaf2045e43b0f8e (patch)
treed48182f048fd662586402053a324178af0775e35 /llvm/lib/Object/WindowsResource.cpp
parentc7672d66badeec75722792deddf888d0d31115cc (diff)
downloadllvm-1c837b5fb192bc54f9be5600fbaf2045e43b0f8e.zip
llvm-1c837b5fb192bc54f9be5600fbaf2045e43b0f8e.tar.gz
llvm-1c837b5fb192bc54f9be5600fbaf2045e43b0f8e.tar.bz2
[ICF] Ignore SHF_GROUP flag when comparing two sections.
SHF_GROUP bit doesn't make sense in executables or DSOs, so linkers are expected to remove that bit from section flags. We did that when we create output sections. This patch is to do that earlier than before. Now the flag is dropped when we instantiate input section objects. This change improves ICF. Previously, two sections that differ only in SHF_GROUP flag were not merged, because when the control reached ICF, the flag was still there. Now the flag is dropped before reaching to ICF, so the difference is ignored naturally. This issue was found by pcc. Differential Revision: https://reviews.llvm.org/D34074 llvm-svn: 305134
Diffstat (limited to 'llvm/lib/Object/WindowsResource.cpp')
0 files changed, 0 insertions, 0 deletions