Fix ambiguous typedef introduced in r217747.
authorFrederic Riss <friss@apple.com>
Mon, 15 Sep 2014 08:23:07 +0000 (08:23 +0000)
committerFrederic Riss <friss@apple.com>
Mon, 15 Sep 2014 08:23:07 +0000 (08:23 +0000)
Use fully qualified name inside a typedef from llvm::iterator_range<...> to
iterator_range. This is reported (rightly I think) by GCC as an
ambiguous name redefinition. Hope this fixes the buildbots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217751 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARFUnit.h

index 24ade0087761521d9663eafe5934b794c925f82d..e5491954c6156a2cc428e9bd2a13592276670c82 100644 (file)
@@ -58,9 +58,9 @@ class DWARFUnitSection : public SmallVector<std::unique_ptr<UnitType>, 1>,
   };
 
 public:
-  typedef SmallVectorImpl<std::unique_ptr<UnitType>> UnitVector;
+  typedef llvm::SmallVectorImpl<std::unique_ptr<UnitType>> UnitVector;
   typedef typename UnitVector::iterator iterator;
-  typedef iterator_range<typename UnitVector::iterator> iterator_range;
+  typedef llvm::iterator_range<typename UnitVector::iterator> iterator_range;
 
   UnitType *getUnitForOffset(uint32_t Offset) const {
     auto *CU = std::lower_bound(this->begin(), this->end(), Offset,