summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AtomicExpandPass.cpp
diff options
context:
space:
mode:
authorJun Bum Lim <junbuml@codeaurora.org>2016-05-13 18:38:35 +0000
committerJun Bum Lim <junbuml@codeaurora.org>2016-05-13 18:38:35 +0000
commitbe11bdc4b06ad634442016fce4e13a426ef9caa5 (patch)
tree1dcfe093082a05473e38364f47aa7ba52b43aa6a /llvm/lib/CodeGen/AtomicExpandPass.cpp
parent4fd6a96008a43a6ff9e8267507211b523488bf7a (diff)
downloadbcm5719-llvm-be11bdc4b06ad634442016fce4e13a426ef9caa5.tar.gz
bcm5719-llvm-be11bdc4b06ad634442016fce4e13a426ef9caa5.zip
Rename getLargestLegalIntTypeSize to getLargestLegalIntTypeSizeInBits(). NFC.
Summary: Rename DataLayout::getLargestLegalIntTypeSize to DataLayout::getLargestLegalIntTypeSizeInBits() to prevent similar mistakes fixed in r269433. Reviewers: joker.eph, mcrosier Subscribers: mcrosier, llvm-commits Differential Revision: http://reviews.llvm.org/D20248 llvm-svn: 269456
Diffstat (limited to 'llvm/lib/CodeGen/AtomicExpandPass.cpp')
-rw-r--r--llvm/lib/CodeGen/AtomicExpandPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AtomicExpandPass.cpp b/llvm/lib/CodeGen/AtomicExpandPass.cpp
index 47e69d8ac25..433ba9468e4 100644
--- a/llvm/lib/CodeGen/AtomicExpandPass.cpp
+++ b/llvm/lib/CodeGen/AtomicExpandPass.cpp
@@ -951,7 +951,7 @@ static bool canUseSizedAtomicCall(unsigned Size, unsigned Align,
// call a sized libcall that doesn't actually exist. There should
// really be some more reliable way in LLVM of determining integer
// sizes which are valid in the target's C ABI...
- unsigned LargestSize = DL.getLargestLegalIntTypeSize() >= 64 ? 16 : 8;
+ unsigned LargestSize = DL.getLargestLegalIntTypeSizeInBits() >= 64 ? 16 : 8;
return Align >= Size &&
(Size == 1 || Size == 2 || Size == 4 || Size == 8 || Size == 16) &&
Size <= LargestSize;
OpenPOWER on IntegriCloud