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)
commit29c8270916547beeec7c3ba94fd58118a771b29a
tree6e241b0fd8cfec9879de9ee28490f2c2a56e8e86
parentffa272ebbb7217c846ac2a92ff3f04be382ae854
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.

llvm-svn: 235300
llvm/lib/MC/ELFObjectWriter.cpp
llvm/test/MC/ELF/relocation.s