Summary: Adds a "Discarded" bool to SectionChunk to indicate if the section was discarded by COMDAT deduplication. The Writer still just checks `isLive()`. Fixes PR33446 Reviewers: ruiu Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D34288 llvm-svn: 305582
14 lines
443 B
ArmAsm
14 lines
443 B
ArmAsm
# Defines foo and foo_assoc globals. foo is comdat, and foo_assoc is comdat
|
|
# associative with it. foo_assoc should be discarded iff foo is discarded,
|
|
# either by linker GC or normal comdat merging.
|
|
|
|
.section .rdata,"dr",associative,foo
|
|
.p2align 3
|
|
.quad foo
|
|
|
|
.section .data,"dw",discard,foo
|
|
.globl foo # @foo
|
|
.p2align 2
|
|
foo:
|
|
.long 42
|