[llvm-commits] CVS: llvm/include/llvm/Instructions.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Nov 5 13:58:41 PST 2005
Changes in directory llvm/include/llvm:
Instructions.h updated: 1.28 -> 1.29
---
Log message:
add an accessor
---
Diffs of the changes: (+4 -0)
Instructions.h | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/include/llvm/Instructions.h
diff -u llvm/include/llvm/Instructions.h:1.28 llvm/include/llvm/Instructions.h:1.29
--- llvm/include/llvm/Instructions.h:1.28 Sat Nov 5 03:21:28 2005
+++ llvm/include/llvm/Instructions.h Sat Nov 5 15:58:30 2005
@@ -68,6 +68,10 @@
/// by the instruction.
///
unsigned getAlignment() const { return Alignment; }
+ void setAlignment(unsigned Align) {
+ assert((Align & (Align-1)) == 0 && "Alignment is not a power of 2!");
+ Alignment = Align;
+ }
virtual Instruction *clone() const = 0;
More information about the llvm-commits
mailing list