mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
[Object/COFF]: Expose getSectionContents.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153051 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user