aboutsummaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-24 03:27:21 +0000
committerChris Lattner <sabre@nondot.org>2009-07-24 03:27:21 +0000
commit083a1e059768f6844b9f5292223bb49ad24f52d1 (patch)
treec16c2854816b9543e014ff4a4e4ab052c6b072d7 /lib/Target
parentad733cd851efbb17cf3a4a70ec49acfc0f1c68fe (diff)
make Constant::getRelocationInfo return an enum, as suggested by Duncan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/ELFTargetAsmInfo.cpp4
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;
}
}