[llvm] r227435 - Use enum values. NFC.
Rafael Espindola
rafael.espindola at gmail.com
Thu Jan 29 05:25:44 PST 2015
Author: rafael
Date: Thu Jan 29 07:25:44 2015
New Revision: 227435
URL: http://llvm.org/viewvc/llvm-project?rev=227435&view=rev
Log:
Use enum values. NFC.
Modified:
llvm/trunk/lib/CodeGen/MachineFunction.cpp
Modified: llvm/trunk/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunction.cpp?rev=227435&r1=227434&r2=227435&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunction.cpp Thu Jan 29 07:25:44 2015
@@ -842,13 +842,13 @@ MachineConstantPoolEntry::getSectionKind
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();
More information about the llvm-commits
mailing list