mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Added accessors for getting coff_relocation info
llvm-svn: 158675
This commit is contained in:
parent
6ea9efb4e5
commit
c56632d5e5
@ -170,7 +170,8 @@ public:
|
||||
|
||||
const coff_section *getCOFFSection(section_iterator &It) const;
|
||||
const coff_symbol *getCOFFSymbol(symbol_iterator &It) const;
|
||||
|
||||
const coff_relocation *getCOFFRelocation(relocation_iterator &It) const;
|
||||
|
||||
virtual uint8_t getBytesInAddress() const;
|
||||
virtual StringRef getFileFormatName() const;
|
||||
virtual unsigned getArch() const;
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user