Look past locals in comdats.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 20 Apr 2015 12:44:06 +0000 (12:44 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 20 Apr 2015 12:44:06 +0000 (12:44 +0000)
commitca3837369f8f705024aba9e01b9b5ccc88f04612
tree2d49e2f17e04c0c0f838bb08ed1e0eac8811e2e2
parent7ab9941632ae2ec8075a97b8ed253714d4f3a25e
Look past locals in comdats.

We have to avoid converting a reference to a global into a reference to a local,
but it is fine to look past a local.

Patch by Vasileios Kalintiris.

I just moved the comment and added thet test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235300 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
test/MC/ELF/relocation.s