diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-07 14:50:40 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-07 14:50:40 +0000 |
commit | 305b826f92e0dc7b670238e7caa35ab6e1cf341a (patch) | |
tree | 0eaa3e639c3f56c93488c7ef650449a5671d3a60 /include/llvm/Object | |
parent | 196abbffe9b7a760593d68b99cbb5f961efc8e2a (diff) | |
download | external_llvm-305b826f92e0dc7b670238e7caa35ab6e1cf341a.zip external_llvm-305b826f92e0dc7b670238e7caa35ab6e1cf341a.tar.gz external_llvm-305b826f92e0dc7b670238e7caa35ab6e1cf341a.tar.bz2 |
Make getObject const. Remove a const_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r-- | include/llvm/Object/MachO.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index f026e6c..4148448 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -155,7 +155,7 @@ public: const MachOFormat::LinkeditDataLoadCommand * getLinkeditDataLoadCommand(LoadCommandInfo LCI) const; - MachOObject *getObject() { return MachOObj.get(); } + const MachOObject *getObject() const { return MachOObj.get(); } static inline bool classof(const Binary *v) { return v->isMachO(); |