[llvm-commits] [llvm] r147114 - in /llvm/trunk/lib/MC: ELFObjectWriter.cpp ELFObjectWriter.h
Rafael Espindola
rafael.espindola at gmail.com
Wed Dec 21 16:21:50 PST 2011
Author: rafael
Date: Wed Dec 21 18:21:50 2011
New Revision: 147114
URL: http://llvm.org/viewvc/llvm-project?rev=147114&view=rev
Log:
getEFlags is const.
Modified:
llvm/trunk/lib/MC/ELFObjectWriter.cpp
llvm/trunk/lib/MC/ELFObjectWriter.h
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=147114&r1=147113&r2=147114&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Wed Dec 21 18:21:50 2011
@@ -1296,7 +1296,7 @@
{}
// 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() {}
// 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;
}
Modified: llvm/trunk/lib/MC/ELFObjectWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.h?rev=147114&r1=147113&r2=147114&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.h (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.h Wed Dec 21 18:21:50 2011
@@ -244,7 +244,7 @@
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 @@
virtual ~ARMELFObjectWriter();
- virtual unsigned getEFlags();
+ virtual unsigned getEFlags() const;
protected:
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
const MCValue &Target,
@@ -425,7 +425,7 @@
bool IsLittleEndian);
virtual ~MipsELFObjectWriter();
- virtual unsigned getEFlags();
+ virtual unsigned getEFlags() const;
protected:
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
More information about the llvm-commits
mailing list