diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-07-19 07:02:58 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-07-19 07:02:58 +0000 |
commit | da06c7cfa0388de29a4024d8d386e48f2fb13ed6 (patch) | |
tree | dc28e84fc2bb9a4a4d9873fe4d04946fe3f7f4c0 /ELF/Target.h | |
parent | 267829774358b5aebd3e726ae318813bd48129bb (diff) | |
download | src-da06c7cfa0388de29a4024d8d386e48f2fb13ed6.tar.gz src-da06c7cfa0388de29a4024d8d386e48f2fb13ed6.zip |
Notes
Diffstat (limited to 'ELF/Target.h')
-rw-r--r-- | ELF/Target.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ELF/Target.h b/ELF/Target.h index 5914d9bbb7ef..1658a81c9b71 100644 --- a/ELF/Target.h +++ b/ELF/Target.h @@ -51,6 +51,9 @@ public: // targeting S. virtual bool needsThunk(RelExpr Expr, uint32_t RelocType, const InputFile *File, const SymbolBody &S) const; + // Return true if we can reach Dst from Src with Relocation RelocType + virtual bool inBranchRange(uint32_t RelocType, uint64_t Src, + uint64_t Dst) const; virtual RelExpr getRelExpr(uint32_t Type, const SymbolBody &S, const uint8_t *Loc) const = 0; virtual void relocateOne(uint8_t *Loc, uint32_t Type, uint64_t Val) const = 0; @@ -154,6 +157,6 @@ static void checkAlignment(uint8_t *Loc, uint64_t V, uint32_t Type) { lld::toString(Type)); } } // namespace elf -} +} // namespace lld #endif |