summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-08-07 17:06:05 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-08-07 17:06:05 +0000
commit7d6112b76f17a3e37f5f4967042b8abc09cefd99 (patch)
tree4db8ff5db70b5e484596305a87be4207d6aee519
parent9659de379d8817398da33564eeb9fbbda42dfb5b (diff)
downloadbcm5719-llvm-7d6112b76f17a3e37f5f4967042b8abc09cefd99.tar.gz
bcm5719-llvm-7d6112b76f17a3e37f5f4967042b8abc09cefd99.zip
Delete dead code. NFC.
llvm-svn: 244335
-rw-r--r--llvm/include/llvm/Object/ELF.h28
-rw-r--r--llvm/include/llvm/Object/ELFTypes.h1
2 files changed, 0 insertions, 29 deletions
diff --git a/llvm/include/llvm/Object/ELF.h b/llvm/include/llvm/Object/ELF.h
index 3ec28f05dec..a5c06dacec6 100644
--- a/llvm/include/llvm/Object/ELF.h
+++ b/llvm/include/llvm/Object/ELF.h
@@ -14,23 +14,9 @@
#ifndef LLVM_OBJECT_ELF_H
#define LLVM_OBJECT_ELF_H
-#include "llvm/ADT/ArrayRef.h"
-#include "llvm/ADT/PointerIntPair.h"
#include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/StringSwitch.h"
-#include "llvm/ADT/Triple.h"
#include "llvm/Object/ELFTypes.h"
-#include "llvm/Object/Error.h"
-#include "llvm/Support/Casting.h"
-#include "llvm/Support/ELF.h"
-#include "llvm/Support/Endian.h"
-#include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/MemoryBuffer.h"
-#include "llvm/Support/raw_ostream.h"
-#include <algorithm>
-#include <limits>
-#include <utility>
namespace llvm {
namespace object {
@@ -69,19 +55,6 @@ public:
typedef Elf_Hash_Impl<ELFT> Elf_Hash;
typedef iterator_range<const Elf_Dyn *> Elf_Dyn_Range;
typedef iterator_range<const Elf_Shdr *> Elf_Shdr_Range;
-
- /// \brief Archive files are 2 byte aligned, so we need this for
- /// PointerIntPair to work.
- template <typename T>
- class ArchivePointerTypeTraits {
- public:
- static inline const void *getAsVoidPointer(T *P) { return P; }
- static inline T *getFromVoidPointer(const void *P) {
- return static_cast<T *>(P);
- }
- enum { NumLowBitsAvailable = 1 };
- };
-
typedef iterator_range<const Elf_Sym *> Elf_Sym_Range;
const uint8_t *base() const {
@@ -89,7 +62,6 @@ public:
}
private:
- typedef SmallVector<const Elf_Shdr *, 2> Sections_t;
StringRef Buf;
diff --git a/llvm/include/llvm/Object/ELFTypes.h b/llvm/include/llvm/Object/ELFTypes.h
index 27e987ba285..2cc67bb2212 100644
--- a/llvm/include/llvm/Object/ELFTypes.h
+++ b/llvm/include/llvm/Object/ELFTypes.h
@@ -12,7 +12,6 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Object/Error.h"
-#include "llvm/Support/DataTypes.h"
#include "llvm/Support/ELF.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/ErrorOr.h"
OpenPOWER on IntegriCloud