summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-02 17:54:01 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-02 17:54:01 +0000
commit6d72d166dc0b67418bd334886e29a0a2bf541a92 (patch)
tree358376de90d65097acb52202e8ca8135827619f7 /lld/ELF/OutputSections.cpp
parent751114b39d434bdd2b6f95330bed7fdcc7a0d580 (diff)
downloadbcm5719-llvm-6d72d166dc0b67418bd334886e29a0a2bf541a92.tar.gz
bcm5719-llvm-6d72d166dc0b67418bd334886e29a0a2bf541a92.zip
Linker: Split mapUnneededSubprograms into two; almost NFC
Split the loop through compile units in mapUnneededSubprograms in two. First, visit imported entities to ensure that we've visited all need subprograms. Second, visit subprograms, and drop the ones we don't need. Hypothetically this protects against a subprogram from one compile unit being referenced from an imported entity in a different compile unit. I don't think that's valid IR (a debug info expert could confirm), but I think the refactor makes the code more clear. llvm-svn: 265233
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud