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 /tools/llvm-readobj | |
parent | 196abbffe9b7a760593d68b99cbb5f961efc8e2a (diff) |
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 'tools/llvm-readobj')
-rw-r--r-- | tools/llvm-readobj/MachODumper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-readobj/MachODumper.cpp b/tools/llvm-readobj/MachODumper.cpp index 0354e767ba..006158e027 100644 --- a/tools/llvm-readobj/MachODumper.cpp +++ b/tools/llvm-readobj/MachODumper.cpp @@ -254,7 +254,7 @@ void MachODumper::printSections() { ++SectionIndex; - const MachOObject *MachO = const_cast<MachOObjectFile*>(Obj)->getObject(); + const MachOObject *MachO = Obj->getObject(); MachOSection Section; getSection(MachO, SecI->getRawDataRefImpl(), Section); |