mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Use enum values. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6cc1119408
commit
40ff18bd02
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user