summaryrefslogtreecommitdiff
path: root/tools/llvm-readobj/ELFDumper.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-01 13:32:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-01 13:32:03 +0000
commit8819c84aed10777ba91d4e862229882b8da0b272 (patch)
tree4895982330c0dceacf26671a3abfadccd4c32040 /tools/llvm-readobj/ELFDumper.cpp
parent1c831f7f1f7e869516f5a70c1e6dd8896bef76f5 (diff)
Remove several unused variables.
Patch by Alp Toker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-readobj/ELFDumper.cpp')
-rw-r--r--tools/llvm-readobj/ELFDumper.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/llvm-readobj/ELFDumper.cpp b/tools/llvm-readobj/ELFDumper.cpp
index 71f03bc3d06..ffa0e01425e 100644
--- a/tools/llvm-readobj/ELFDumper.cpp
+++ b/tools/llvm-readobj/ELFDumper.cpp
@@ -420,8 +420,6 @@ static const EnumEntry<unsigned> ElfSegmentFlags[] = {
template<class ELFT>
void ELFDumper<ELFT>::printFileHeaders() {
- error_code EC;
-
const typename ELFO::Elf_Ehdr *Header = Obj->getHeader();
{
@@ -512,7 +510,6 @@ template<class ELFT>
void ELFDumper<ELFT>::printRelocations() {
ListScope D(W, "Relocations");
- error_code EC;
int SectionNumber = -1;
for (typename ELFO::Elf_Shdr_Iter SecI = Obj->begin_sections(),
SecE = Obj->end_sections();
@@ -769,8 +766,6 @@ template<class ELFT>
void ELFDumper<ELFT>::printNeededLibraries() {
ListScope D(W, "NeededLibraries");
- error_code EC;
-
typedef std::vector<StringRef> LibsTy;
LibsTy Libs;