diff options
author | Michael Liao <michael.liao@intel.com> | 2012-10-25 18:35:04 +0000 |
---|---|---|
committer | Michael Liao <michael.liao@intel.com> | 2012-10-25 18:35:04 +0000 |
commit | ed2507a9dabc6d10c9e1e3685f528651b8cb73fd (patch) | |
tree | 59fdb728a8b63ecdb2a794e868a6316369b87719 | |
parent | 1e19e4613913b02761ac736a01f22a3028679f45 (diff) | |
download | external_llvm-ed2507a9dabc6d10c9e1e3685f528651b8cb73fd.zip external_llvm-ed2507a9dabc6d10c9e1e3685f528651b8cb73fd.tar.gz external_llvm-ed2507a9dabc6d10c9e1e3685f528651b8cb73fd.tar.bz2 |
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
-rw-r--r-- | include/llvm/MC/MCELFObjectWriter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/MC/MCELFObjectWriter.h b/include/llvm/MC/MCELFObjectWriter.h index 4ffea8d..38cdc72 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; } /// @} |