summaryrefslogtreecommitdiff
path: root/tools/yaml2obj
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-03-14 06:53:21 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-03-14 06:53:21 +0000
commitef3154042b0314d12a6a14aaf3e2737c63ad35c0 (patch)
tree0df3be350f74091b532a68a6b7317af07fa7f142 /tools/yaml2obj
parent9f685d3951b81515dae30067821deadc4c8d635f (diff)
downloadllvm-ef3154042b0314d12a6a14aaf3e2737c63ad35c0.tar.gz
llvm-ef3154042b0314d12a6a14aaf3e2737c63ad35c0.tar.bz2
llvm-ef3154042b0314d12a6a14aaf3e2737c63ad35c0.tar.xz
[yaml2obj][ELF] Remove unused ELFState class field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/yaml2obj')
-rw-r--r--tools/yaml2obj/yaml2elf.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp
index e24a5492f9..c8fc0637ee 100644
--- a/tools/yaml2obj/yaml2elf.cpp
+++ b/tools/yaml2obj/yaml2elf.cpp
@@ -159,17 +159,14 @@ class ELFState {
/// \brief The accumulated contents of all sections so far.
ContiguousBlobAccumulator &SectionContentAccum;
typedef typename object::ELFFile<ELFT>::Elf_Ehdr Elf_Ehdr;
- /// \brief The ELF file header.
- Elf_Ehdr &Header;
SectionNameToIdxMap &SN2I;
public:
-
- ELFState(Elf_Ehdr &Header_, ContiguousBlobAccumulator &Accum,
- unsigned DotStrtabSecNo_, SectionNameToIdxMap &SN2I_)
+ ELFState(ContiguousBlobAccumulator &Accum, unsigned DotStrtabSecNo_,
+ SectionNameToIdxMap &SN2I_)
: DotStrtab(), DotStrtabSecNo(DotStrtabSecNo_),
- SectionContentAccum(Accum), Header(Header_), SN2I(SN2I_) {}
+ SectionContentAccum(Accum), SN2I(SN2I_) {}
unsigned getDotStrTabSecNo() const { return DotStrtabSecNo; }
StringTableBuilder &getStringTable() { return DotStrtab; }
@@ -302,7 +299,7 @@ static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) {
}
}
- ELFState<ELFT> State(Header, CBA, DotStrtabSecNo, SN2I);
+ ELFState<ELFT> State(CBA, DotStrtabSecNo, SN2I);
StringTableBuilder SHStrTab;
std::vector<Elf_Shdr> SHeaders;