inline RemapLabel into its only caller and simplify.
authorChris Lattner <sabre@nondot.org>
Tue, 9 Mar 2010 01:29:59 +0000 (01:29 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 Mar 2010 01:29:59 +0000 (01:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98029 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineModuleInfo.h

index 8eeac9f1e5178e40457cf0f62b6ac013c4329651..313f910f8fd30454660fd1fb86f64906241cb62b 100644 (file)
@@ -217,17 +217,9 @@ public:
   /// MachineModuleInfo, for example because the code was deleted.
   void InvalidateLabel(unsigned LabelID) {
     // Remap to zero to indicate deletion.
-    RemapLabel(LabelID, 0);
-  }
-
-  /// RemapLabel - Indicate that a label has been merged into another.
-  ///
-  void RemapLabel(unsigned OldLabelID, unsigned NewLabelID) {
-    assert(0 < OldLabelID && OldLabelID <= LabelIDList.size() &&
-          "Old label ID out of range.");
-    assert(NewLabelID <= LabelIDList.size() &&
-          "New label ID out of range.");
-    LabelIDList[OldLabelID - 1] = NewLabelID;
+    assert(0 < LabelID && LabelID <= LabelIDList.size() &&
+           "Old label ID out of range.");
+    LabelIDList[LabelID - 1] = 0;
   }
   
   /// MappedLabel - Find out the label's final ID.  Zero indicates deletion.