diff options
Diffstat (limited to 'lib/Object/COFFObjectFile.cpp')
| -rw-r--r-- | lib/Object/COFFObjectFile.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/lib/Object/COFFObjectFile.cpp b/lib/Object/COFFObjectFile.cpp index 28531feccfe1a..7372f24cb9a8e 100644 --- a/lib/Object/COFFObjectFile.cpp +++ b/lib/Object/COFFObjectFile.cpp @@ -293,6 +293,10 @@ uint64_t COFFObjectFile::getSectionAddress(DataRefImpl Ref) const {    return Result;  } +uint64_t COFFObjectFile::getSectionIndex(DataRefImpl Sec) const { +  return toSec(Sec) - SectionTable; +} +  uint64_t COFFObjectFile::getSectionSize(DataRefImpl Ref) const {    return getSectionSize(toSec(Ref));  } | 
