mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
add a helper function for bumping up the alignment of a machine function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94700 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff0210d0b0
commit
aeb7be3435
@ -177,6 +177,11 @@ public:
|
|||||||
///
|
///
|
||||||
void setAlignment(unsigned A) { Alignment = A; }
|
void setAlignment(unsigned A) { Alignment = A; }
|
||||||
|
|
||||||
|
/// EnsureAlignment - Make sure the function is at least 'A' bits aligned.
|
||||||
|
void EnsureAlignment(unsigned A) {
|
||||||
|
if (Alignment < A) Alignment = A;
|
||||||
|
}
|
||||||
|
|
||||||
/// getInfo - Keep track of various per-function pieces of information for
|
/// getInfo - Keep track of various per-function pieces of information for
|
||||||
/// backends that would like to do so.
|
/// backends that would like to do so.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user