mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
inline RemapLabel into its only caller and simplify.
llvm-svn: 98029
This commit is contained in:
parent
8e3e2688b5
commit
73de790f59
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user