Drop ZeroIndex and InvalidIndex.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 4 Feb 2012 00:11:06 +0000 (00:11 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 4 Feb 2012 00:11:06 +0000 (00:11 +0000)
They are not used any more. Simply use SlotIndex() to get an invalid
index.

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

include/llvm/CodeGen/LiveIntervalAnalysis.h
include/llvm/CodeGen/SlotIndexes.h

index 19da2adf06a5fd7d621707e14903d2d47f352372..3492168774baed7dec0e626298cab6e53936ac27 100644 (file)
@@ -161,14 +161,6 @@ namespace llvm {
       return indexes_;
     }
 
-    SlotIndex getZeroIndex() const {
-      return indexes_->getZeroIndex();
-    }
-
-    SlotIndex getInvalidIndex() const {
-      return indexes_->getInvalidIndex();
-    }
-
     /// isNotInMIMap - returns true if the specified machine instr has been
     /// removed or was never entered in the map.
     bool isNotInMIMap(const MachineInstr* Instr) const {
index 774a0f5443bc9477517f09d4902995ee326f9e59..b1813b341912e96aa855a58392689a762b4a431d 100644 (file)
@@ -472,11 +472,6 @@ namespace llvm {
       return SlotIndex(back(), 0);
     }
 
-    /// Returns the invalid index marker for this analysis.
-    SlotIndex getInvalidIndex() {
-      return getZeroIndex();
-    }
-
     /// Returns the distance between the highest and lowest indexes allocated
     /// so far.
     unsigned getIndexesLength() const {