diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-10-20 06:13:33 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-10-20 06:13:33 +0000 |
commit | f3cadce84c5a5630a8d796f5234153eea0e8871f (patch) | |
tree | 826c6900740e5124a3b7de8bb584df2d52c1e12d /llvm/lib/IR/DataLayout.cpp | |
parent | 6665d62117729d7cfb99dc621d6bb2c77f5861ec (diff) | |
download | bcm5719-llvm-f3cadce84c5a5630a8d796f5234153eea0e8871f.tar.gz bcm5719-llvm-f3cadce84c5a5630a8d796f5234153eea0e8871f.zip |
IR: Replace DataLayout::RoundUpAlignment with RoundUpToAlignment
No functional change intended, just cleaning up some code.
llvm-svn: 220187
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
-rw-r--r-- | llvm/lib/IR/DataLayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp index 7496268b409..eb13a95954f 100644 --- a/llvm/lib/IR/DataLayout.cpp +++ b/llvm/lib/IR/DataLayout.cpp @@ -55,7 +55,7 @@ StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { // Add padding if necessary to align the data element properly. if ((StructSize & (TyAlign-1)) != 0) - StructSize = DataLayout::RoundUpAlignment(StructSize, TyAlign); + StructSize = RoundUpToAlignment(StructSize, TyAlign); // Keep track of maximum alignment constraint. StructAlignment = std::max(TyAlign, StructAlignment); @@ -70,7 +70,7 @@ StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { // Add padding to the end of the struct so that it could be put in an array // and all array elements would be aligned correctly. if ((StructSize & (StructAlignment-1)) != 0) - StructSize = DataLayout::RoundUpAlignment(StructSize, StructAlignment); + StructSize = RoundUpToAlignment(StructSize, StructAlignment); } |