mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Rename PaddedSize to AllocSize, in the hope that this
will make it more obvious what it represents, and stop it being confused with the StoreSize. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -484,7 +484,7 @@ printModuleLevelGV(const GlobalVariable* GVar) {
|
||||
std::string name = Mang->getValueName(GVar);
|
||||
Constant *C = GVar->getInitializer();
|
||||
const Type *CTy = C->getType();
|
||||
unsigned Size = TD->getTypePaddedSize(CTy);
|
||||
unsigned Size = TD->getTypeAllocSize(CTy);
|
||||
const ConstantArray *CVA = dyn_cast<ConstantArray>(C);
|
||||
bool printSizeAndType = true;
|
||||
|
||||
|
@@ -210,7 +210,7 @@ bool MipsTargetLowering::IsGlobalInSmallSection(GlobalValue *GV)
|
||||
return false;
|
||||
|
||||
const Type *Ty = GV->getType()->getElementType();
|
||||
unsigned Size = TD->getTypePaddedSize(Ty);
|
||||
unsigned Size = TD->getTypeAllocSize(Ty);
|
||||
|
||||
// if this is a internal constant string, there is a special
|
||||
// section for it, but not in small data/bss.
|
||||
@@ -551,7 +551,7 @@ LowerConstantPool(SDValue Op, SelectionDAG &DAG)
|
||||
// hacking it. This feature should come soon so we can uncomment the
|
||||
// stuff below.
|
||||
//if (!Subtarget->hasABICall() &&
|
||||
// IsInSmallSection(getTargetData()->getTypePaddedSize(C->getType()))) {
|
||||
// IsInSmallSection(getTargetData()->getTypeAllocSize(C->getType()))) {
|
||||
// SDValue GPRelNode = DAG.getNode(MipsISD::GPRel, MVT::i32, CP);
|
||||
// SDValue GOT = DAG.getGLOBAL_OFFSET_TABLE(MVT::i32);
|
||||
// ResNode = DAG.getNode(ISD::ADD, MVT::i32, GOT, GPRelNode);
|
||||
|
@@ -66,7 +66,7 @@ SectionKindForGlobal(const GlobalValue *GV) const {
|
||||
|
||||
if (isa<GlobalVariable>(GV)) {
|
||||
const TargetData *TD = TM.getTargetData();
|
||||
unsigned Size = TD->getTypePaddedSize(GV->getType()->getElementType());
|
||||
unsigned Size = TD->getTypeAllocSize(GV->getType()->getElementType());
|
||||
unsigned Threshold = Subtarget->getSSectionThreshold();
|
||||
|
||||
if (Size > 0 && Size <= Threshold) {
|
||||
|
Reference in New Issue
Block a user