mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Remove more duplicated code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -714,7 +714,7 @@ const MCSymbol *ELFObjectWriter::SymbolToReloc(const MCAssembler &Asm,
|
||||
return &Symbol;
|
||||
}
|
||||
|
||||
if (Section.getFlags() & MCSectionELF::SHF_MERGE) {
|
||||
if (Section.getFlags() & ELF::SHF_MERGE) {
|
||||
if (Target.getConstant() == 0)
|
||||
return NULL;
|
||||
if (Renamed)
|
||||
@@ -1183,7 +1183,7 @@ void ELFObjectWriter::CreateGroupSections(MCAssembler &Asm,
|
||||
it != ie; ++it) {
|
||||
const MCSectionELF &Section =
|
||||
static_cast<const MCSectionELF&>(it->getSection());
|
||||
if (!(Section.getFlags() & MCSectionELF::SHF_GROUP))
|
||||
if (!(Section.getFlags() & ELF::SHF_GROUP))
|
||||
continue;
|
||||
|
||||
const MCSymbol *SignatureSymbol = Section.getGroup();
|
||||
@@ -1206,7 +1206,7 @@ void ELFObjectWriter::CreateGroupSections(MCAssembler &Asm,
|
||||
it != ie; ++it, ++Index) {
|
||||
const MCSectionELF &Section =
|
||||
static_cast<const MCSectionELF&>(it->getSection());
|
||||
if (!(Section.getFlags() & MCSectionELF::SHF_GROUP))
|
||||
if (!(Section.getFlags() & ELF::SHF_GROUP))
|
||||
continue;
|
||||
const MCSectionELF *Group = RevGroupMap[Section.getGroup()];
|
||||
MCSectionData &Data = Asm.getOrCreateSectionData(*Group);
|
||||
|
Reference in New Issue
Block a user