summaryrefslogtreecommitdiff
path: root/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-08-15 09:18:55 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-08-15 09:18:55 +0000
commit8c9b4de5744ea6c4ce8b79e8a55130df268761cd (patch)
tree1bdd498c853c3b016b53cbb20a262aa3e8c5def2 /lib/CodeGen/PrologEpilogInserter.cpp
parentbf437720381ded52024e52560bc84e95dde266f7 (diff)
downloadllvm-8c9b4de5744ea6c4ce8b79e8a55130df268761cd.tar.gz
llvm-8c9b4de5744ea6c4ce8b79e8a55130df268761cd.tar.bz2
llvm-8c9b4de5744ea6c4ce8b79e8a55130df268761cd.tar.xz
Make this compile on gc 3.4.1 (static_cast to non-const type was not
allowed). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r--lib/CodeGen/PrologEpilogInserter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp
index 2044212965..1a07013ac3 100644
--- a/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/lib/CodeGen/PrologEpilogInserter.cpp
@@ -163,7 +163,7 @@ void PEI::calculateCallerSavedRegisters(MachineFunction &Fn) {
return; // Early exit if no caller saved registers are modified!
unsigned NumFixedSpillSlots;
- std::pair<unsigned,int> *FixedSpillSlots =
+ const std::pair<unsigned,int> *FixedSpillSlots =
TFI->getCalleeSaveSpillSlots(NumFixedSpillSlots);
// Now that we know which registers need to be saved and restored, allocate
@@ -175,7 +175,7 @@ void PEI::calculateCallerSavedRegisters(MachineFunction &Fn) {
// Check to see if this physreg must be spilled to a particular stack slot
// on this target.
- std::pair<unsigned,int> *FixedSlot = FixedSpillSlots;
+ const std::pair<unsigned,int> *FixedSlot = FixedSpillSlots;
while (FixedSlot != FixedSpillSlots+NumFixedSpillSlots &&
FixedSlot->first != Reg)
++FixedSlot;