diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-22 00:21:50 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-22 00:21:50 +0000 |
commit | e99183d2ace21eb25325304c164b21bf2910fc63 (patch) | |
tree | 0cc7dd7648e1c3dc29a5a0a061accfbc20775148 /lib/MC | |
parent | ab26da9e679afb26b6af589c2d414d50bf4a6441 (diff) | |
download | external_llvm-e99183d2ace21eb25325304c164b21bf2910fc63.zip external_llvm-e99183d2ace21eb25325304c164b21bf2910fc63.tar.gz external_llvm-e99183d2ace21eb25325304c164b21bf2910fc63.tar.bz2 |
getEFlags is const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/ELFObjectWriter.cpp | 4 | ||||
-rw-r--r-- | lib/MC/ELFObjectWriter.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index cb8b4e1..b694c18 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -1296,7 +1296,7 @@ ARMELFObjectWriter::~ARMELFObjectWriter() {} // FIXME: get the real EABI Version from the Triple. -unsigned ARMELFObjectWriter::getEFlags() { +unsigned ARMELFObjectWriter::getEFlags() const { return ELF::EF_ARM_EABIMASK & DefaultEABIVersion; } @@ -1646,7 +1646,7 @@ MipsELFObjectWriter::MipsELFObjectWriter(MCELFObjectTargetWriter *MOTW, MipsELFObjectWriter::~MipsELFObjectWriter() {} // 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; } diff --git a/lib/MC/ELFObjectWriter.h b/lib/MC/ELFObjectWriter.h index 653b821..59734e8 100644 --- a/lib/MC/ELFObjectWriter.h +++ b/lib/MC/ELFObjectWriter.h @@ -244,7 +244,7 @@ class ELFObjectWriter : public MCObjectWriter { unsigned NumberOfSections); /// Default e_flags = 0 - virtual unsigned getEFlags() { return 0; } + virtual unsigned getEFlags() const { return 0; } virtual void WriteSymbolEntry(MCDataFragment *SymtabF, MCDataFragment *ShndxF, @@ -369,7 +369,7 @@ class ELFObjectWriter : public MCObjectWriter { virtual ~ARMELFObjectWriter(); - virtual unsigned getEFlags(); + virtual unsigned getEFlags() const; protected: virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm, const MCValue &Target, @@ -425,7 +425,7 @@ class ELFObjectWriter : public MCObjectWriter { bool IsLittleEndian); virtual ~MipsELFObjectWriter(); - virtual unsigned getEFlags(); + virtual unsigned getEFlags() const; protected: virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm, |