diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-09-02 14:42:37 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-09-27 19:05:26 -0700 |
commit | 9dcd96f728863d40d6f5922ed52732fdd728fb5f (patch) | |
tree | 73b57555928252aa649352d7d0a3ee8bf1e8e2d4 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | fa08afc3207c4b41b82a1fdfe8265712ec0509b0 (diff) | |
download | llvm-9dcd96f728863d40d6f5922ed52732fdd728fb5f.zip llvm-9dcd96f728863d40d6f5922ed52732fdd728fb5f.tar.gz llvm-9dcd96f728863d40d6f5922ed52732fdd728fb5f.tar.bz2 |
Canonicalize declaration pointers when forming APValues.
References to different declarations of the same entity aren't different
values, so shouldn't have different representations.
Recommit of e6393ee813178e9d3306b8e3c6949a4f32f8a2cb with fixed handling
for weak declarations. We now look for attributes on the most recent
declaration when determining whether a declaration is weak. (Second
recommit with further fixes for mishandling of weak declarations. Our
behavior here is fundamentally unsound -- see PR47663 -- but this
approach attempts to not make things worse.)
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions