Use RelType in a few more places. NFC.

llvm-svn: 325017
This commit is contained in:
Rafael Espindola 2018-02-13 16:06:11 +00:00
parent 35cf8bbe36
commit d49866edba
2 changed files with 4 additions and 4 deletions

View File

@ -1202,12 +1202,12 @@ RelocationBaseSection::RelocationBaseSection(StringRef Name, uint32_t Type,
: SyntheticSection(SHF_ALLOC, Type, Config->Wordsize, Name),
DynamicTag(DynamicTag), SizeDynamicTag(SizeDynamicTag) {}
void RelocationBaseSection::addReloc(uint32_t DynType, InputSectionBase *IS,
void RelocationBaseSection::addReloc(RelType DynType, InputSectionBase *IS,
uint64_t OffsetInSec, Symbol *Sym) {
addReloc({DynType, IS, OffsetInSec, false, Sym, 0});
}
void RelocationBaseSection::addReloc(uint32_t DynType,
void RelocationBaseSection::addReloc(RelType DynType,
InputSectionBase *InputSec,
uint64_t OffsetInSec, bool UseSymVA,
Symbol *Sym, int64_t Addend, RelExpr Expr,

View File

@ -361,9 +361,9 @@ class RelocationBaseSection : public SyntheticSection {
public:
RelocationBaseSection(StringRef Name, uint32_t Type, int32_t DynamicTag,
int32_t SizeDynamicTag);
void addReloc(uint32_t DynType, InputSectionBase *IS, uint64_t OffsetInSec,
void addReloc(RelType DynType, InputSectionBase *IS, uint64_t OffsetInSec,
Symbol *Sym);
void addReloc(uint32_t DynType, InputSectionBase *InputSec,
void addReloc(RelType DynType, InputSectionBase *InputSec,
uint64_t OffsetInSec, bool UseSymVA, Symbol *Sym,
int64_t Addend, RelExpr Expr, RelType Type);
void addReloc(const DynamicReloc &Reloc);