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:
Chris Lattner 2010-01-27 23:35:43 +00:00
parent ff0210d0b0
commit aeb7be3435

View File

@ -177,6 +177,11 @@ public:
///
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
/// backends that would like to do so.
///