make Constant::getRelocationInfo return an enum, as suggested by Duncan.
[oota-llvm.git] / lib / Target / ELFTargetAsmInfo.cpp
index 9e7bb4aee26963e797b3337150fdfc3e2326db41..284f4cb4556ee1a998586bb03365934f64222730 100644 (file)
@@ -62,10 +62,10 @@ ELFTargetAsmInfo::SectionKindForGlobal(const GlobalValue *GV) const {
     // placed in r/w section.
     switch (C->getRelocationInfo()) {
     default: break;
-    case 1:
+    case Constant::LocalRelocation:
       return isConstant ? SectionKind::DataRelROLocal :
                           SectionKind::DataRelLocal;
-    case 2:
+    case Constant::GlobalRelocations:
       return isConstant ? SectionKind::DataRelRO : SectionKind::DataRel;
     }
   }