[llvm-commits] [llvm] r166708 - /llvm/trunk/include/llvm/MC/MCELFObjectWriter.h
Michael Liao
michael.liao at intel.com
Thu Oct 25 11:35:04 PDT 2012
Author: hliao
Date: Thu Oct 25 13:35:04 2012
New Revision: 166708
URL: http://llvm.org/viewvc/llvm-project?rev=166708&view=rev
Log:
Add 'const' qualifier on member functions not changing its fields.
Modified:
llvm/trunk/include/llvm/MC/MCELFObjectWriter.h
Modified: llvm/trunk/include/llvm/MC/MCELFObjectWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCELFObjectWriter.h?rev=166708&r1=166707&r2=166708&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCELFObjectWriter.h (original)
+++ llvm/trunk/include/llvm/MC/MCELFObjectWriter.h Thu Oct 25 13:35:04 2012
@@ -96,9 +96,9 @@
/// @name Accessors
/// @{
- uint8_t getOSABI() { return OSABI; }
- uint16_t getEMachine() { return EMachine; }
- bool hasRelocationAddend() { return HasRelocationAddend; }
+ uint8_t getOSABI() const { return OSABI; }
+ uint16_t getEMachine() const { return EMachine; }
+ bool hasRelocationAddend() const { return HasRelocationAddend; }
bool is64Bit() const { return Is64Bit; }
bool isN64() const { return IsN64; }
/// @}
More information about the llvm-commits
mailing list