Add a comment for AMDGPU relocateOne().

llvm-svn: 257095
This commit is contained in:
Rui Ueyama 2016-01-07 20:34:16 +00:00
parent b9b50aaffd
commit 1300e6b15a
1 changed files with 4 additions and 0 deletions

View File

@ -1359,6 +1359,10 @@ bool AMDGPUTargetInfo::relocNeedsPlt(uint32_t Type, const SymbolBody &S) const {
return false;
}
// Implementing relocations for AMDGPU is low priority since most
// programs don't use relocations now. Thus, this function is not
// actually called (relocateOne is called for each relocation).
// That's why the AMDGPU port works without implementing this function.
void AMDGPUTargetInfo::relocateOne(uint8_t *Loc, uint8_t *BufEnd, uint32_t Type,
uint64_t P, uint64_t SA, uint64_t ZA,
uint8_t *PairedLoc) const {