From: Michael Liao Date: Thu, 25 Oct 2012 18:35:04 +0000 (+0000) Subject: Add 'const' qualifier on member functions not changing its fields. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ed2507a9dabc6d10c9e1e3685f528651b8cb73fd;p=oota-llvm.git Add 'const' qualifier on member functions not changing its fields. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166708 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCELFObjectWriter.h b/include/llvm/MC/MCELFObjectWriter.h index 4ffea8de15e..38cdc7293ba 100644 --- a/include/llvm/MC/MCELFObjectWriter.h +++ b/include/llvm/MC/MCELFObjectWriter.h @@ -96,9 +96,9 @@ public: /// @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; } /// @}