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 {
365365 return getPointerSpec (AS).BitWidth ;
366366 }
367367
368- // / Returns the maximum index size over all address spaces.
369- unsigned getMaxIndexSizeInBits () const ;
370-
371368 // / Size in bits of index used for address calculation in getelementptr.
372369 unsigned getIndexSizeInBits (unsigned AS) const {
373370 return getPointerSpec (AS).IndexBitWidth ;
Original file line number Diff line number Diff line change @@ -740,13 +740,6 @@ unsigned DataLayout::getPointerSize(unsigned AS) const {
740740 return divideCeil (getPointerSpec (AS).BitWidth , 8 );
741741}
742742
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-
750743unsigned DataLayout::getPointerTypeSizeInBits (Type *Ty) const {
751744 assert (Ty->isPtrOrPtrVectorTy () &&
752745 " This should only be called with a pointer or pointer vector type" );
You can’t perform that action at this time.
0 commit comments