Use enum values. NFC.

llvm-svn: 227435
This commit is contained in:
Rafael Espindola 2015-01-29 13:25:44 +00:00
parent 4b643c23fd
commit e2d4b2df39
1 changed files with 3 additions and 3 deletions

View File

@ -842,13 +842,13 @@ MachineConstantPoolEntry::getSectionKind(const DataLayout *DL) const {
switch (getRelocationInfo()) {
default:
llvm_unreachable("Unknown section kind");
case 2:
case Constant::GlobalRelocations:
Kind = SectionKind::getReadOnlyWithRel();
break;
case 1:
case Constant::LocalRelocation:
Kind = SectionKind::getReadOnlyWithRelLocal();
break;
case 0:
case Constant::NoRelocation:
switch (DL->getTypeAllocSize(getType())) {
case 4:
Kind = SectionKind::getMergeableConst4();