[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineConstantPool.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 8 18:25:55 PST 2006
Changes in directory llvm/include/llvm/CodeGen:
MachineConstantPool.h updated: 1.11 -> 1.12
---
Log message:
Assert invariants
---
Diffs of the changes: (+3 -0)
MachineConstantPool.h | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/include/llvm/CodeGen/MachineConstantPool.h
diff -u llvm/include/llvm/CodeGen/MachineConstantPool.h:1.11 llvm/include/llvm/CodeGen/MachineConstantPool.h:1.12
--- llvm/include/llvm/CodeGen/MachineConstantPool.h:1.11 Wed Feb 8 20:24:25 2006
+++ llvm/include/llvm/CodeGen/MachineConstantPool.h Wed Feb 8 20:25:42 2006
@@ -24,6 +24,7 @@
#include <vector>
#include <iosfwd>
+#include <cassert>
namespace llvm {
@@ -37,6 +38,8 @@
/// an existing one. User must specify an alignment in bytes for the object.
///
unsigned getConstantPoolIndex(Constant *C, unsigned Alignment) {
+ assert(Alignment && "Alignment must be specified!");
+
// Check to see if we already have this constant.
//
// FIXME, this could be made much more efficient for large constant pools.
More information about the llvm-commits
mailing list