mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user