Add an assert that this is only used with .o files.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 4 Apr 2014 00:31:12 +0000 (00:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 4 Apr 2014 00:31:12 +0000 (00:31 +0000)
commit7247546ba3b17565ff59f76d31b69ac948459e32
treecfec4c2ed000b640ff4e25655bbc499054f412ab
parent98a126621874024c4283cf92b5ae1c5eb2e7b8e0
Add an assert that this is only used with .o files.

I am not sure how to get a relocation in a .dylib, but this function would
return the wrong value if passed one.

llvm-svn: 205592
llvm/lib/Object/MachOObjectFile.cpp