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)
commiteec7d48f8ebff799bffabfa4aefcc67581274cba
tree1999e96cf61b70a201919fea248da9f39c534c47
parent7df905954106fe2302df36d96e4952b736817298
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205592 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/MachOObjectFile.cpp