diff options
Diffstat (limited to 'lib/Target/ELFTargetAsmInfo.cpp')
-rw-r--r-- | lib/Target/ELFTargetAsmInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp index 9e7bb4aee2..284f4cb455 100644 --- a/lib/Target/ELFTargetAsmInfo.cpp +++ b/lib/Target/ELFTargetAsmInfo.cpp @@ -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; } } |