[llvm-commits] [llvm] r98029 - /llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h

Chris Lattner sabre at nondot.org
Mon Mar 8 17:29:59 PST 2010


Author: lattner
Date: Mon Mar  8 19:29:59 2010
New Revision: 98029

URL: http://llvm.org/viewvc/llvm-project?rev=98029&view=rev
Log:
inline RemapLabel into its only caller and simplify.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h?rev=98029&r1=98028&r2=98029&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h Mon Mar  8 19:29:59 2010
@@ -217,17 +217,9 @@
   /// 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.





More information about the llvm-commits mailing list