Remove unused Target argument from AsmParser construction methods.
[oota-llvm.git] / include / llvm / ADT / IntervalMap.h
index 79f24d31c068dac4d510ae122dbad28b24b9eb01..f28ebf3b9a5f09f0d68e156229e0395888ca99f6 100644 (file)
@@ -1328,6 +1328,10 @@ public:
   /// const_iterator - Create an iterator that isn't pointing anywhere.
   const_iterator() : map(0) {}
 
+  /// setMap - Change the map iterated over. This call must be followed by a
+  /// call to goToBegin(), goToEnd(), or find()
+  void setMap(const IntervalMap &m) { map = const_cast<IntervalMap*>(&m); }
+
   /// valid - Return true if the current position is valid, false for end().
   bool valid() const { return path.valid(); }