Remove unused typedefs gcc4.8 warns about.
authorRoman Divacky <rdivacky@freebsd.org>
Wed, 5 Sep 2012 17:55:46 +0000 (17:55 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Wed, 5 Sep 2012 17:55:46 +0000 (17:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163225 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/Hashing.h
include/llvm/Analysis/LoopInfoImpl.h
include/llvm/SymbolTableListTraits.h
lib/CodeGen/RegAllocPBQP.cpp
lib/DebugInfo/DWARFDebugAranges.cpp

index 6ab07254a21d5849fdbccfa59ce8d6232ab3c236..23633045ff04b87404a580520d9a005f516c7583 100644 (file)
@@ -409,7 +409,6 @@ bool store_and_advance(char *&buffer_ptr, char *buffer_end, const T& value,
 /// combining them, this (as an optimization) directly combines the integers.
 template <typename InputIteratorT>
 hash_code hash_combine_range_impl(InputIteratorT first, InputIteratorT last) {
-  typedef typename std::iterator_traits<InputIteratorT>::value_type ValueT;
   const size_t seed = get_execution_seed();
   char buffer[64], *buffer_ptr = buffer;
   char *const buffer_end = buffer_ptr + array_lengthof(buffer);
index c07fbf7aa82739ee742b66d4d0a7d64b8ccc74a0..3bb96f96bf520889b85928851d6865e74f7368a9 100644 (file)
@@ -145,7 +145,6 @@ BlockT *LoopBase<BlockT, LoopT>::getLoopPredecessor() const {
 
   // Loop over the predecessors of the header node...
   BlockT *Header = getHeader();
-  typedef GraphTraits<BlockT*> BlockTraits;
   typedef GraphTraits<Inverse<BlockT*> > InvBlockTraits;
   for (typename InvBlockTraits::ChildIteratorType PI =
          InvBlockTraits::child_begin(Header),
index 91a4eb99ff0d368c489c7b0d9ff50829b93bf08a..ec5c88f5c8a7a83f88b36589c24969e861338f1c 100644 (file)
@@ -46,7 +46,6 @@ public:
   /// getListOwner - Return the object that owns this list.  If this is a list
   /// of instructions, it returns the BasicBlock that owns them.
   ItemParentClass *getListOwner() {
-    typedef iplist<ValueSubClass> ItemParentClass::*Sublist;
     size_t Offset(size_t(&((ItemParentClass*)0->*ItemParentClass::
                            getSublistAccess(static_cast<ValueSubClass*>(0)))));
     iplist<ValueSubClass>* Anchor(static_cast<iplist<ValueSubClass>*>(this));
index 640b5e1f0d80df63c1a00f32517be330bb6e7006..fcdbce75d922ff782ab8dc61ba8c7c4146f39d4a 100644 (file)
@@ -192,7 +192,6 @@ std::auto_ptr<PBQPRAProblem> PBQPBuilder::build(MachineFunction *mf,
                                                 const MachineLoopInfo *loopInfo,
                                                 const RegSet &vregs) {
 
-  typedef std::vector<const LiveInterval*> LIVector;
   LiveIntervals *LIS = const_cast<LiveIntervals*>(lis);
   MachineRegisterInfo *mri = &mf->getRegInfo();
   const TargetRegisterInfo *tri = mf->getTarget().getRegisterInfo();
index ef470e5799cdfddfadd2aef338b5224360c38b6a..f9a34c908f1d25564c2109e02750c424adc950c9 100644 (file)
@@ -62,7 +62,6 @@ bool DWARFDebugAranges::extract(DataExtractor debug_aranges_data) {
     uint32_t offset = 0;
 
     typedef std::vector<DWARFDebugArangeSet> SetCollection;
-    typedef SetCollection::const_iterator SetCollectionIter;
     SetCollection sets;
 
     DWARFDebugArangeSet set;