aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Object/COFF.h
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-03-19 20:27:37 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-03-19 20:27:37 +0000
commit1f6e3f9544c93213111a2f8b314c926c0d0e30e5 (patch)
tree832499bf09f95b9d6c44e841ef0c31a8f13f8996 /include/llvm/Object/COFF.h
parentb35a896e072ff46c38905419b7f55aaccdb1d702 (diff)
downloadexternal_llvm-1f6e3f9544c93213111a2f8b314c926c0d0e30e5.zip
external_llvm-1f6e3f9544c93213111a2f8b314c926c0d0e30e5.tar.gz
external_llvm-1f6e3f9544c93213111a2f8b314c926c0d0e30e5.tar.bz2
[Object/COFF]: Expose getSectionContents.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/COFF.h')
-rw-r--r--include/llvm/Object/COFF.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h
index f19ce6f..91971bb 100644
--- a/include/llvm/Object/COFF.h
+++ b/include/llvm/Object/COFF.h
@@ -19,6 +19,9 @@
#include "llvm/Support/Endian.h"
namespace llvm {
+ template <typename T>
+ class ArrayRef;
+
namespace object {
struct coff_file_header {
@@ -178,6 +181,8 @@ public:
}
error_code getSymbolName(const coff_symbol *symbol, StringRef &Res) const;
error_code getSectionName(const coff_section *Sec, StringRef &Res) const;
+ error_code getSectionContents(const coff_section *Sec,
+ ArrayRef<uint8_t> &Res) const;
static inline bool classof(const Binary *v) {
return v->isCOFF();