[Linker] Also treat a DIImportedEntity scope DISubprogram as needed.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 7 Jan 2016 03:14:59 +0000 (03:14 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 7 Jan 2016 03:14:59 +0000 (03:14 +0000)
commitb472064510c1710d35768945a9a4b531fe257531
tree454dcebd9a27a7936d22a4a8d0ca9a450074ae08
parentc983c660234bd54d7027445695b338bbc1fa3ae1
[Linker] Also treat a DIImportedEntity scope DISubprogram as needed.

Follow-up to r257000: DIImportedEntity can reach a DISubprogram via
its entity, but also via its scope. Handle the latter case as well.

PR26037.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257019 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/IRMover.cpp
test/Linker/pr26037.ll