forked from OSchip/llvm-project
parent
4b643c23fd
commit
e2d4b2df39
|
@ -842,13 +842,13 @@ MachineConstantPoolEntry::getSectionKind(const DataLayout *DL) const {
|
||||||
switch (getRelocationInfo()) {
|
switch (getRelocationInfo()) {
|
||||||
default:
|
default:
|
||||||
llvm_unreachable("Unknown section kind");
|
llvm_unreachable("Unknown section kind");
|
||||||
case 2:
|
case Constant::GlobalRelocations:
|
||||||
Kind = SectionKind::getReadOnlyWithRel();
|
Kind = SectionKind::getReadOnlyWithRel();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case Constant::LocalRelocation:
|
||||||
Kind = SectionKind::getReadOnlyWithRelLocal();
|
Kind = SectionKind::getReadOnlyWithRelLocal();
|
||||||
break;
|
break;
|
||||||
case 0:
|
case Constant::NoRelocation:
|
||||||
switch (DL->getTypeAllocSize(getType())) {
|
switch (DL->getTypeAllocSize(getType())) {
|
||||||
case 4:
|
case 4:
|
||||||
Kind = SectionKind::getMergeableConst4();
|
Kind = SectionKind::getMergeableConst4();
|
||||||
|
|
Loading…
Reference in New Issue