getEFlags is const.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147114 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2011-12-22 00:21:50 +00:00
parent ab26da9e67
commit e99183d2ac
2 changed files with 5 additions and 5 deletions

View File

@ -1296,7 +1296,7 @@ ARMELFObjectWriter::~ARMELFObjectWriter()
{} {}
// FIXME: get the real EABI Version from the Triple. // FIXME: get the real EABI Version from the Triple.
unsigned ARMELFObjectWriter::getEFlags() { unsigned ARMELFObjectWriter::getEFlags() const {
return ELF::EF_ARM_EABIMASK & DefaultEABIVersion; return ELF::EF_ARM_EABIMASK & DefaultEABIVersion;
} }
@ -1646,7 +1646,7 @@ MipsELFObjectWriter::MipsELFObjectWriter(MCELFObjectTargetWriter *MOTW,
MipsELFObjectWriter::~MipsELFObjectWriter() {} MipsELFObjectWriter::~MipsELFObjectWriter() {}
// FIXME: get the real EABI Version from the Triple. // FIXME: get the real EABI Version from the Triple.
unsigned MipsELFObjectWriter::getEFlags() { unsigned MipsELFObjectWriter::getEFlags() const {
return ELF::EF_MIPS_NOREORDER | ELF::EF_MIPS_ARCH_32R2; return ELF::EF_MIPS_NOREORDER | ELF::EF_MIPS_ARCH_32R2;
} }

View File

@ -244,7 +244,7 @@ class ELFObjectWriter : public MCObjectWriter {
unsigned NumberOfSections); unsigned NumberOfSections);
/// Default e_flags = 0 /// Default e_flags = 0
virtual unsigned getEFlags() { return 0; } virtual unsigned getEFlags() const { return 0; }
virtual void WriteSymbolEntry(MCDataFragment *SymtabF, virtual void WriteSymbolEntry(MCDataFragment *SymtabF,
MCDataFragment *ShndxF, MCDataFragment *ShndxF,
@ -369,7 +369,7 @@ class ELFObjectWriter : public MCObjectWriter {
virtual ~ARMELFObjectWriter(); virtual ~ARMELFObjectWriter();
virtual unsigned getEFlags(); virtual unsigned getEFlags() const;
protected: protected:
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm, virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
const MCValue &Target, const MCValue &Target,
@ -425,7 +425,7 @@ class ELFObjectWriter : public MCObjectWriter {
bool IsLittleEndian); bool IsLittleEndian);
virtual ~MipsELFObjectWriter(); virtual ~MipsELFObjectWriter();
virtual unsigned getEFlags(); virtual unsigned getEFlags() const;
protected: protected:
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm, virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,