summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarshall Clow <mclow@qualcomm.com>2012-06-15 01:08:25 +0000
committerMarshall Clow <mclow@qualcomm.com>2012-06-15 01:08:25 +0000
commitd4d03e09d3686d317da1166b578ca5ca35593970 (patch)
treede766cca4efa2e280b17a303de41f13a8fdad294 /include
parent6399b7c51076846942a0c05b4823ca9a8f55b5fc (diff)
downloadllvm-d4d03e09d3686d317da1166b578ca5ca35593970.tar.gz
llvm-d4d03e09d3686d317da1166b578ca5ca35593970.tar.bz2
llvm-d4d03e09d3686d317da1166b578ca5ca35593970.tar.xz
Adding acessors to COFFObjectFile so that clients can get at the (non-generic) bits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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 68b5ca1bc7..29965a9de8 100644
--- a/include/llvm/Object/COFF.h
+++ b/include/llvm/Object/COFF.h
@@ -168,6 +168,9 @@ public:
virtual section_iterator begin_sections() const;
virtual section_iterator end_sections() const;
+ const coff_section *getCOFFSection(section_iterator &It) const;
+ const coff_symbol *getCOFFSymbol(symbol_iterator &It) const;
+
virtual uint8_t getBytesInAddress() const;
virtual StringRef getFileFormatName() const;
virtual unsigned getArch() const;
@@ -184,6 +187,8 @@ public:
return ec;
}
error_code getSymbolName(const coff_symbol *symbol, StringRef &Res) const;
+ ArrayRef<uint8_t> getSymbolAuxData(const coff_symbol *symbol) const;
+
error_code getSectionName(const coff_section *Sec, StringRef &Res) const;
error_code getSectionContents(const coff_section *Sec,
ArrayRef<uint8_t> &Res) const;