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 /lib | |
parent | 7e99a60857532ca2973cf9dabc790d84a2e15a8a (diff) | |
download | external_llvm-9ac0f1d7255d7941c331b0a62a830a3b033358fd.zip external_llvm-9ac0f1d7255d7941c331b0a62a830a3b033358fd.tar.gz external_llvm-9ac0f1d7255d7941c331b0a62a830a3b033358fd.tar.bz2 |
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 'lib')
-rw-r--r-- | lib/Object/COFFObjectFile.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Object/COFFObjectFile.cpp b/lib/Object/COFFObjectFile.cpp index a8f8d60..8ab54c6 100644 --- a/lib/Object/COFFObjectFile.cpp +++ b/lib/Object/COFFObjectFile.cpp @@ -724,6 +724,11 @@ const coff_symbol *COFFObjectFile::getCOFFSymbol(symbol_iterator &It) const { return toSymb(It->getRawDataRefImpl()); } +const coff_relocation *COFFObjectFile::getCOFFRelocation( + relocation_iterator &It) const { + return toRel(It->getRawDataRefImpl()); +} + #define LLVM_COFF_SWITCH_RELOC_TYPE_NAME(enum) \ case COFF::enum: res = #enum; break; |