diff options
| author | Lang Hames <lhames@gmail.com> | 2009-11-14 00:02:51 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2009-11-14 00:02:51 +0000 |
| commit | b3661585c0f87b6045f0d65b5cac16921ae27086 (patch) | |
| tree | 47bf8c7aeb54636b8cfaf996a1ac5110efdc511e /lib/CodeGen/SlotIndexes.cpp | |
| parent | 1f6a3c820a997fd3c4c08dedff6706f5e045e42d (diff) | |
Added an API to the SlotIndexes pass to allow new instructions to be inserted into the numbering.
PreAllocSplitting is now using this API to insert code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SlotIndexes.cpp')
| -rw-r--r-- | lib/CodeGen/SlotIndexes.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SlotIndexes.cpp b/lib/CodeGen/SlotIndexes.cpp index 7365ec1b9a..f85384bc5c 100644 --- a/lib/CodeGen/SlotIndexes.cpp +++ b/lib/CodeGen/SlotIndexes.cpp @@ -156,7 +156,7 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) { return false; } -void SlotIndexes::renumber() { +void SlotIndexes::renumberIndexes() { // Renumber updates the index of every element of the index list. // If all instrs in the function have been allocated an index (which has been @@ -184,7 +184,6 @@ void SlotIndexes::renumber() { Slots = 1; index += (Slots + 1) * SlotIndex::NUM; - } } } |
