diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-01-29 13:25:44 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-01-29 13:25:44 +0000 |
commit | e2d4b2df39f38638625beb61af3382a37ac04fdf (patch) | |
tree | d19b494fedfc281f23d90f8e68f4d10e9fb177dc | |
parent | 4b643c23fd1a84aa125b4b6bd9c1a78fc4bceb28 (diff) | |
download | bcm5719-llvm-e2d4b2df39f38638625beb61af3382a37ac04fdf.tar.gz bcm5719-llvm-e2d4b2df39f38638625beb61af3382a37ac04fdf.zip |
Use enum values. NFC.
llvm-svn: 227435
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 937cf03a294..bcb44ea3b3f 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -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(); |