diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2014-03-14 06:53:21 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2014-03-14 06:53:21 +0000 |
| commit | 64dadc8981f71ecb0a87d4b976c850b408c66421 (patch) | |
| tree | 311c94cd4ea94a52b3f7a2b163e866d53ac55ebf /llvm | |
| parent | a3130a4badcc6d98145cc1925f0fcb8a5ca9e741 (diff) | |
| download | bcm5719-llvm-64dadc8981f71ecb0a87d4b976c850b408c66421.tar.gz bcm5719-llvm-64dadc8981f71ecb0a87d4b976c850b408c66421.zip | |
[yaml2obj][ELF] Remove unused ELFState class field.
llvm-svn: 203898
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/tools/yaml2obj/yaml2elf.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/tools/yaml2obj/yaml2elf.cpp b/llvm/tools/yaml2obj/yaml2elf.cpp index e24a5492f91..c8fc0637eef 100644 --- a/llvm/tools/yaml2obj/yaml2elf.cpp +++ b/llvm/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; |

