[lld] r257095 - Add a comment for AMDGPU relocateOne().
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 7 12:34:17 PST 2016
Author: ruiu
Date: Thu Jan 7 14:34:16 2016
New Revision: 257095
URL: http://llvm.org/viewvc/llvm-project?rev=257095&view=rev
Log:
Add a comment for AMDGPU relocateOne().
Modified:
lld/trunk/ELF/Target.cpp
Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=257095&r1=257094&r2=257095&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Thu Jan 7 14:34:16 2016
@@ -1359,6 +1359,10 @@ bool AMDGPUTargetInfo::relocNeedsPlt(uin
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 {
More information about the llvm-commits
mailing list