[llvm-commits] CVS: llvm/lib/CodeGen/PrologEpilogInserter.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Sun Aug 15 02:17:10 PDT 2004



Changes in directory llvm/lib/CodeGen:

PrologEpilogInserter.cpp updated: 1.29 -> 1.30
---
Log message:

Make this compile on gc 3.4.1 (static_cast to non-const type was not
allowed).


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.29 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.30
--- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.29	Sat Aug 14 17:00:10 2004
+++ llvm/lib/CodeGen/PrologEpilogInserter.cpp	Sun Aug 15 04:17:00 2004
@@ -163,7 +163,7 @@
     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 @@
 
     // 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;






More information about the llvm-commits mailing list