diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-11-11 16:50:37 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-11-11 16:50:37 +0000 |
| commit | db9bf4dbfe5472876db327a9dfe3b9fbe39ffdb8 (patch) | |
| tree | b490e222f5ebdb36ef04491118f36b07ed0f543e /lld/ELF/InputSection.h | |
| parent | 70dd2d7ab9ce89be79675a2a238059c56ff055d6 (diff) | |
| download | bcm5719-llvm-db9bf4dbfe5472876db327a9dfe3b9fbe39ffdb8.tar.gz bcm5719-llvm-db9bf4dbfe5472876db327a9dfe3b9fbe39ffdb8.zip | |
Add a helper for getting the output offset of an input offset.
This will get a non st_value use shortly.
llvm-svn: 252753
Diffstat (limited to 'lld/ELF/InputSection.h')
| -rw-r--r-- | lld/ELF/InputSection.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h index 33584745989..fe3c8e054bd 100644 --- a/lld/ELF/InputSection.h +++ b/lld/ELF/InputSection.h @@ -64,6 +64,11 @@ public: } uintX_t getOffset(const Elf_Sym &Sym); + + // Translate an offset in the input section to an offset in the output + // section. + uintX_t getOffset(uintX_t Offset); + ArrayRef<uint8_t> getSectionData() const; // Returns a section that Rel is pointing to. Used by the garbage collector. |

