From 305b826f92e0dc7b670238e7caa35ab6e1cf341a Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 7 Apr 2013 14:50:40 +0000 Subject: Make getObject const. Remove a const_cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178980 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-readobj/MachODumper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/llvm-readobj') 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(Obj)->getObject(); + const MachOObject *MachO = Obj->getObject(); MachOSection Section; getSection(MachO, SecI->getRawDataRefImpl(), Section); -- cgit v1.2.3-18-g5258