summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-10-20 06:13:36 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-10-20 06:13:36 +0000
commited68407c46d822693849c5375e6609b1a9344c92 (patch)
tree014e148337011da02bdec6110e3e85c01ae8e0f7 /clang/lib/CodeGen
parentf3cadce84c5a5630a8d796f5234153eea0e8871f (diff)
downloadbcm5719-llvm-ed68407c46d822693849c5375e6609b1a9344c92.tar.gz
bcm5719-llvm-ed68407c46d822693849c5375e6609b1a9344c92.zip
CodeGen: Update for LLVM API change
Callers of DataLayout::RoundUpAlignment should switch to RoundUpToAlignment. llvm-svn: 220188
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/TargetInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index f78c2d04073..55ff63300d7 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -2295,7 +2295,7 @@ GetX86_64ByValArgumentPair(llvm::Type *Lo, llvm::Type *Hi,
// the second element at offset 8. Check for this:
unsigned LoSize = (unsigned)TD.getTypeAllocSize(Lo);
unsigned HiAlign = TD.getABITypeAlignment(Hi);
- unsigned HiStart = llvm::DataLayout::RoundUpAlignment(LoSize, HiAlign);
+ unsigned HiStart = llvm::RoundUpToAlignment(LoSize, HiAlign);
assert(HiStart != 0 && HiStart <= 8 && "Invalid x86-64 argument pair!");
// To handle this, we have to increase the size of the low part so that the
OpenPOWER on IntegriCloud