aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DataLayout.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-08-23 23:19:25 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-08-23 23:19:25 +0000
commit0b6563e8a22a12fb624be4b8c698f189d3935534 (patch)
tree708cf748d6b07956ebde825538ab178f8e777015 /llvm/lib/IR/DataLayout.cpp
parent05bc1468c2f4f7cbe707aba722e651e4a414e829 (diff)
downloadllvm-0b6563e8a22a12fb624be4b8c698f189d3935534.zip
llvm-0b6563e8a22a12fb624be4b8c698f189d3935534.tar.gz
llvm-0b6563e8a22a12fb624be4b8c698f189d3935534.tar.bz2
[LLVM][NFC] Removing unused functions
Summary: Removes a not so useful function from DataLayout and cleans up Support/MathExtras.h Reviewers: courbet Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66691 llvm-svn: 369824
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
-rw-r--r--llvm/lib/IR/DataLayout.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp
index 1b9ff39..d56cd8e 100644
--- a/llvm/lib/IR/DataLayout.cpp
+++ b/llvm/lib/IR/DataLayout.cpp
@@ -763,12 +763,6 @@ unsigned DataLayout::getPrefTypeAlignment(Type *Ty) const {
return getAlignment(Ty, false);
}
-unsigned DataLayout::getPreferredTypeAlignmentShift(Type *Ty) const {
- unsigned Align = getPrefTypeAlignment(Ty);
- assert(!(Align & (Align-1)) && "Alignment is not a power of two!");
- return Log2_32(Align);
-}
-
IntegerType *DataLayout::getIntPtrType(LLVMContext &C,
unsigned AddressSpace) const {
return IntegerType::get(C, getIndexSizeInBits(AddressSpace));