diff options
author | Rui Ueyama <ruiu@google.com> | 2016-01-07 20:34:16 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-01-07 20:34:16 +0000 |
commit | 1300e6b15a2e203253d9c6b224bfe8551d302509 (patch) | |
tree | 46b5a4912ff5e06d619032b5610ad9a00c915f8e | |
parent | b9b50aaffddf9b3d7b22f42a332811dddb6b9440 (diff) | |
download | bcm5719-llvm-1300e6b15a2e203253d9c6b224bfe8551d302509.tar.gz bcm5719-llvm-1300e6b15a2e203253d9c6b224bfe8551d302509.zip |
Add a comment for AMDGPU relocateOne().
llvm-svn: 257095
-rw-r--r-- | lld/ELF/Target.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index ddeea93f039..bd302accdcd 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -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 { |