Add a SymbolRef::getValue.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 24 Jun 2015 19:11:10 +0000 (19:11 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 24 Jun 2015 19:11:10 +0000 (19:11 +0000)
commit9fa0ab3335e5ff602714a7eca8bf79ad81296dc2
tree5870cd48da928471d57419c57498207715d67b9c
parent234c5890e78633d36baa0477cb3ecfc8c02dfd67
Add a SymbolRef::getValue.

This returns either the symbol offset or address. Since it is not defined which
one, it never has to lookup the section and so never fails.

I will add users in the next commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240569 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
include/llvm/Object/ELFObjectFile.h
include/llvm/Object/MachO.h
include/llvm/Object/ObjectFile.h
lib/Object/COFFObjectFile.cpp
lib/Object/MachOObjectFile.cpp