forked from OSchip/llvm-project
Remove MergeableConst.
Only the specific ones (MergeableConst4, MergeableConst8, MergeableConst16) are handled specially. llvm-svn: 227440
This commit is contained in:
parent
5f255eb48f
commit
33804cac96
|
@ -55,7 +55,6 @@ class SectionKind {
|
|||
/// MergeableConst - These are sections for merging fixed-length
|
||||
/// constants together. For example, this can be used to unique
|
||||
/// constant pool entries etc.
|
||||
MergeableConst,
|
||||
|
||||
/// MergeableConst4 - This is a section used by 4-byte constants,
|
||||
/// for example, floats.
|
||||
|
@ -151,8 +150,8 @@ public:
|
|||
bool isMergeable4ByteCString() const { return K == Mergeable4ByteCString; }
|
||||
|
||||
bool isMergeableConst() const {
|
||||
return K == MergeableConst || K == MergeableConst4 ||
|
||||
K == MergeableConst8 || K == MergeableConst16;
|
||||
return K == MergeableConst4 || K == MergeableConst8 ||
|
||||
K == MergeableConst16;
|
||||
}
|
||||
bool isMergeableConst4() const { return K == MergeableConst4; }
|
||||
bool isMergeableConst8() const { return K == MergeableConst8; }
|
||||
|
@ -216,7 +215,6 @@ public:
|
|||
static SectionKind getMergeable4ByteCString() {
|
||||
return get(Mergeable4ByteCString);
|
||||
}
|
||||
static SectionKind getMergeableConst() { return get(MergeableConst); }
|
||||
static SectionKind getMergeableConst4() { return get(MergeableConst4); }
|
||||
static SectionKind getMergeableConst8() { return get(MergeableConst8); }
|
||||
static SectionKind getMergeableConst16() { return get(MergeableConst16); }
|
||||
|
|
|
@ -860,7 +860,7 @@ MachineConstantPoolEntry::getSectionKind(const DataLayout *DL) const {
|
|||
Kind = SectionKind::getMergeableConst16();
|
||||
break;
|
||||
default:
|
||||
Kind = SectionKind::getMergeableConst();
|
||||
Kind = SectionKind::getReadOnly();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -204,7 +204,8 @@ SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV,
|
|||
case 4: return SectionKind::getMergeableConst4();
|
||||
case 8: return SectionKind::getMergeableConst8();
|
||||
case 16: return SectionKind::getMergeableConst16();
|
||||
default: return SectionKind::getMergeableConst();
|
||||
default:
|
||||
return SectionKind::getReadOnly();
|
||||
}
|
||||
|
||||
case Constant::LocalRelocation:
|
||||
|
|
Loading…
Reference in New Issue