File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -365,9 +365,6 @@ class DataLayout {
365
365
return getPointerSpec (AS).BitWidth ;
366
366
}
367
367
368
- // / Returns the maximum index size over all address spaces.
369
- unsigned getMaxIndexSizeInBits () const ;
370
-
371
368
// / Size in bits of index used for address calculation in getelementptr.
372
369
unsigned getIndexSizeInBits (unsigned AS) const {
373
370
return getPointerSpec (AS).IndexBitWidth ;
Original file line number Diff line number Diff line change @@ -740,13 +740,6 @@ unsigned DataLayout::getPointerSize(unsigned AS) const {
740
740
return divideCeil (getPointerSpec (AS).BitWidth , 8 );
741
741
}
742
742
743
- unsigned DataLayout::getMaxIndexSizeInBits () const {
744
- unsigned MaxIndexSize = 0 ;
745
- for (const PointerSpec &Spec : PointerSpecs)
746
- MaxIndexSize = std::max (MaxIndexSize, Spec.IndexBitWidth );
747
- return MaxIndexSize;
748
- }
749
-
750
743
unsigned DataLayout::getPointerTypeSizeInBits (Type *Ty) const {
751
744
assert (Ty->isPtrOrPtrVectorTy () &&
752
745
" This should only be called with a pointer or pointer vector type" );
You can’t perform that action at this time.
0 commit comments