llvm.org GIT mirror llvm / aeb7be3
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 Chris Lattner 10 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
176176 ///
177177 void setAlignment(unsigned A) { Alignment = A; }
178178
179 /// EnsureAlignment - Make sure the function is at least 'A' bits aligned.
180 void EnsureAlignment(unsigned A) {
181 if (Alignment < A) Alignment = A;
182 }
183
179184 /// getInfo - Keep track of various per-function pieces of information for
180185 /// backends that would like to do so.
181186 ///