diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2019-08-23 23:19:25 +0000 |
|---|---|---|
| committer | Guillaume Chatelet <gchatelet@google.com> | 2019-08-23 23:19:25 +0000 |
| commit | 0b6563e8a22a12fb624be4b8c698f189d3935534 (patch) | |
| tree | 708cf748d6b07956ebde825538ab178f8e777015 /llvm/lib/IR | |
| parent | 05bc1468c2f4f7cbe707aba722e651e4a414e829 (diff) | |
| download | bcm5719-llvm-0b6563e8a22a12fb624be4b8c698f189d3935534.tar.gz bcm5719-llvm-0b6563e8a22a12fb624be4b8c698f189d3935534.zip | |
[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')
| -rw-r--r-- | llvm/lib/IR/DataLayout.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp index 1b9ff3922d1..d56cd8ea5ab 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)); |

