mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-17 03:24:34 +00:00
add an accessor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -68,6 +68,10 @@ public:
|
|||||||
/// by the instruction.
|
/// by the instruction.
|
||||||
///
|
///
|
||||||
unsigned getAlignment() const { return Alignment; }
|
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;
|
virtual Instruction *clone() const = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user