aboutsummaryrefslogtreecommitdiff
path: root/COFF/DLL.h
diff options
context:
space:
mode:
Diffstat (limited to 'COFF/DLL.h')
-rw-r--r--COFF/DLL.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/COFF/DLL.h b/COFF/DLL.h
index ad312789edf1..c5d6e7c93abf 100644
--- a/COFF/DLL.h
+++ b/COFF/DLL.h
@@ -76,6 +76,11 @@ class EdataContents {
public:
EdataContents();
std::vector<Chunk *> Chunks;
+
+ uint64_t getRVA() { return Chunks[0]->getRVA(); }
+ uint64_t getSize() {
+ return Chunks.back()->getRVA() + Chunks.back()->getSize() - getRVA();
+ }
};
} // namespace coff