diff options
author | Marshall Clow <mclow@qualcomm.com> | 2012-06-18 19:47:16 +0000 |
---|---|---|
committer | Marshall Clow <mclow@qualcomm.com> | 2012-06-18 19:47:16 +0000 |
commit | 9ac0f1d7255d7941c331b0a62a830a3b033358fd (patch) | |
tree | ab2d8860acceeda6bfea57294b9af5d525a8b0f4 /include/llvm/Object/ObjectFile.h | |
parent | 7e99a60857532ca2973cf9dabc790d84a2e15a8a (diff) |
Added accessors for getting coff_relocation info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/ObjectFile.h')
-rw-r--r-- | include/llvm/Object/ObjectFile.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h index 4dd7fb5813..76b493eba3 100644 --- a/include/llvm/Object/ObjectFile.h +++ b/include/llvm/Object/ObjectFile.h @@ -126,6 +126,8 @@ public: /// /// This is for display purposes only. error_code getValueString(SmallVectorImpl<char> &Result) const; + + DataRefImpl getRawDataRefImpl() const; }; typedef content_iterator<RelocationRef> relocation_iterator; @@ -570,6 +572,11 @@ inline error_code RelocationRef::getValueString(SmallVectorImpl<char> &Result) inline error_code RelocationRef::getHidden(bool &Result) const { return OwningObject->getRelocationHidden(RelocationPimpl, Result); } + +inline DataRefImpl RelocationRef::getRawDataRefImpl() const { + return RelocationPimpl; +} + // Inline function definitions. inline LibraryRef::LibraryRef(DataRefImpl LibraryP, const ObjectFile *Owner) : LibraryPimpl(LibraryP) |