diff options
author | Rui Ueyama <ruiu@google.com> | 2016-01-14 21:06:47 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-01-14 21:06:47 +0000 |
commit | da00f2fdf4d1d4db75591bdb9a4ac79ce1a2cc38 (patch) | |
tree | c8a2a0e414deb2c2e11e3a1a1bd35d44d6538b1a /llvm/lib/IR/DataLayout.cpp | |
parent | c897cdde701011b83d5cfe0151a367cba7db6f63 (diff) | |
download | bcm5719-llvm-da00f2fdf4d1d4db75591bdb9a4ac79ce1a2cc38.tar.gz bcm5719-llvm-da00f2fdf4d1d4db75591bdb9a4ac79ce1a2cc38.zip |
Update to use new name alignTo().
llvm-svn: 257804
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 5468f47bbfe..5ec5f92b388 100644 --- a/llvm/lib/IR/DataLayout.cpp +++ b/llvm/lib/IR/DataLayout.cpp @@ -52,7 +52,7 @@ StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { // Add padding if necessary to align the data element properly. if ((StructSize & (TyAlign-1)) != 0) { IsPadded = true; - StructSize = RoundUpToAlignment(StructSize, TyAlign); + StructSize = alignTo(StructSize, TyAlign); } // Keep track of maximum alignment constraint. @@ -69,7 +69,7 @@ StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { // and all array elements would be aligned correctly. if ((StructSize & (StructAlignment-1)) != 0) { IsPadded = true; - StructSize = RoundUpToAlignment(StructSize, StructAlignment); + StructSize = alignTo(StructSize, StructAlignment); } } |