projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6033716
)
add an accessor
author
Chris Lattner
<sabre@nondot.org>
Sat, 5 Nov 2005 21:58:30 +0000
(21:58 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 5 Nov 2005 21:58:30 +0000
(21:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24201
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Instructions.h
patch
|
blob
|
history
diff --git
a/include/llvm/Instructions.h
b/include/llvm/Instructions.h
index e6c3ca9fe917f36c6f0817f0c01ef6742f4effc5..8c62d3de3b446d47680bf9423058252ced20a4f0 100644
(file)
--- a/
include/llvm/Instructions.h
+++ b/
include/llvm/Instructions.h
@@
-68,6
+68,10
@@
public:
/// 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;