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 | d3e2a76ca436821ccbc195521c429499d267f927 (patch) | |
tree | f0a18c95de3402ae788f615cceb2a7b7209f2dae /llvm/lib/Object/COFFObjectFile.cpp | |
parent | cb540f5cffcbc168731675e69403b852652c64e1 (diff) | |
download | bcm5719-llvm-d3e2a76ca436821ccbc195521c429499d267f927.tar.gz bcm5719-llvm-d3e2a76ca436821ccbc195521c429499d267f927.zip |
Added accessors for getting coff_relocation info
llvm-svn: 158675
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/COFFObjectFile.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp index a8f8d604db8..8ab54c62950 100644 --- a/llvm/lib/Object/COFFObjectFile.cpp +++ b/llvm/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; |