From 80f2397fde0fa2726a1fc1a2e4a6c794627d4f93 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 4 Mar 2014 04:15:59 +0000 Subject: [PATCH] Use auto for readability. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202786 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objdump/COFFDump.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/llvm-objdump/COFFDump.cpp b/tools/llvm-objdump/COFFDump.cpp index 53cedbbdbd4..df47324422d 100644 --- a/tools/llvm-objdump/COFFDump.cpp +++ b/tools/llvm-objdump/COFFDump.cpp @@ -277,9 +277,7 @@ static void printLoadConfiguration(const COFFObjectFile *Obj) { if (error(Obj->getRvaPtr(DataDir->RelativeVirtualAddress, IntPtr))) return; - const coff_load_configuration32 *LoadConf = - reinterpret_cast(IntPtr); - + auto *LoadConf = reinterpret_cast(IntPtr); outs() << "Load configuration:" << "\n Timestamp: " << LoadConf->TimeDateStamp << "\n Major Version: " << LoadConf->MajorVersion @@ -515,8 +513,8 @@ static void printRuntimeFunctionRels(const COFFObjectFile *Obj, if (UnwindInfoOffset > XContents.size()) return; - const Win64EH::UnwindInfo *UI = reinterpret_cast( - XContents.data() + UnwindInfoOffset); + auto *UI = reinterpret_cast(XContents.data() + + UnwindInfoOffset); printWin64EHUnwindInfo(UI); } -- 2.11.0