mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 04:31:17 +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:
parent
6033716140
commit
8ae779da70
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user