llvm.org GIT mirror llvm / 70cfaa3
Fix the naming of ensureAlignment. Per the coding standard function names should be camel case, and start with a lower case letter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159877 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 8 years ago
2 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
188188 ///
189189 void setAlignment(unsigned A) { Alignment = A; }
190190
191 /// EnsureAlignment - Make sure the function is at least 1 << A bytes aligned.
192 void EnsureAlignment(unsigned A) {
191 /// ensureAlignment - Make sure the function is at least 1 << A bytes aligned.
192 void ensureAlignment(unsigned A) {
193193 if (Alignment < A) Alignment = A;
194194 }
195195
414414
415415 // ARM and Thumb2 functions need to be 4-byte aligned.
416416 if (!isThumb1)
417 MF->EnsureAlignment(2); // 2 = log2(4)
417 MF->ensureAlignment(2); // 2 = log2(4)
418418
419419 // Perform the initial placement of the constant pool entries. To start with,
420420 // we put them all at the end of the function.
515515
516516 // The function needs to be as aligned as the basic blocks. The linker may
517517 // move functions around based on their alignment.
518 MF->EnsureAlignment(BB->getAlignment());
518 MF->ensureAlignment(BB->getAlignment());
519519
520520 // Order the entries in BB by descending alignment. That ensures correct
521521 // alignment of all entries as long as BB is sufficiently aligned. Keep
814814 // tBR_JTr contains a .align 2 directive.
815815 if (!MBB->empty() && MBB->back().getOpcode() == ARM::tBR_JTr) {
816816 BBI.PostAlign = 2;
817 MBB->getParent()->EnsureAlignment(2);
817 MBB->getParent()->ensureAlignment(2);
818818 }
819819 }
820820