From: Rafael Espindola Date: Thu, 29 Jan 2015 13:25:44 +0000 (+0000) Subject: Use enum values. NFC. X-Git-Tag: llvmorg-3.7.0-rc1~13745 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2d4b2df39f38638625beb61af3382a37ac04fdf;p=platform%2Fupstream%2Fllvm.git Use enum values. NFC. llvm-svn: 227435 --- diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 937cf03..bcb44ea 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();