Added accessors for getting coff_relocation info

llvm-svn: 158675
This commit is contained in:
Marshall Clow
2012-06-18 19:47:16 +00:00
parent cb540f5cff
commit d3e2a76ca4
3 changed files with 14 additions and 1 deletions

View File

@@ -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;