aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-09 01:29:59 +0000
committerChris Lattner <sabre@nondot.org>2010-03-09 01:29:59 +0000
commit2dfff057344d2dc4251a2c61ac070772034266e7 (patch)
treef65f222fcfd4bb082f9eabf91775d1e8ace93641
parentea7cfc10fea15e42a8934bffec06ba60b29f3a7b (diff)
downloadexternal_llvm-2dfff057344d2dc4251a2c61ac070772034266e7.zip
external_llvm-2dfff057344d2dc4251a2c61ac070772034266e7.tar.gz
external_llvm-2dfff057344d2dc4251a2c61ac070772034266e7.tar.bz2
inline RemapLabel into its only caller and simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98029 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MachineModuleInfo.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h
index 8eeac9f..313f910 100644
--- a/include/llvm/CodeGen/MachineModuleInfo.h
+++ b/include/llvm/CodeGen/MachineModuleInfo.h
@@ -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.