[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCFrameInfo.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sun Aug 15 02:17:10 PDT 2004
Changes in directory llvm/lib/Target/PowerPC:
PowerPCFrameInfo.h updated: 1.1 -> 1.2
---
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/Target/PowerPC/PowerPCFrameInfo.h
diff -u llvm/lib/Target/PowerPC/PowerPCFrameInfo.h:1.1 llvm/lib/Target/PowerPC/PowerPCFrameInfo.h:1.2
--- llvm/lib/Target/PowerPC/PowerPCFrameInfo.h:1.1 Sat Aug 14 17:16:36 2004
+++ llvm/lib/Target/PowerPC/PowerPCFrameInfo.h Sun Aug 15 04:17:00 2004
@@ -33,10 +33,10 @@
LR[0].second = 8;
}
- std::pair<unsigned, int> *
+ const std::pair<unsigned, int> *
getCalleeSaveSpillSlots(unsigned &NumEntries) const {
NumEntries = 1;
- return static_cast<std::pair<unsigned, int> *>(LR);
+ return static_cast<const std::pair<unsigned, int> *>(LR);
}
};
More information about the llvm-commits
mailing list