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

