diff options
author | Rui Ueyama <ruiu@google.com> | 2014-03-04 04:15:59 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-03-04 04:15:59 +0000 |
commit | 8c1d4c948a00feb5d379ab74d186da8086c8ed59 (patch) | |
tree | c1e00db7a5e5d870417559b4bd38a571755cd385 /llvm/tools | |
parent | 9c674e68519af463541058bcb44550f827f0958d (diff) | |
download | bcm5719-llvm-8c1d4c948a00feb5d379ab74d186da8086c8ed59.tar.gz bcm5719-llvm-8c1d4c948a00feb5d379ab74d186da8086c8ed59.zip |
Use auto for readability.
llvm-svn: 202786
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/llvm-objdump/COFFDump.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/tools/llvm-objdump/COFFDump.cpp b/llvm/tools/llvm-objdump/COFFDump.cpp index 53cedbbdbd4..df47324422d 100644 --- a/llvm/tools/llvm-objdump/COFFDump.cpp +++ b/llvm/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<const coff_load_configuration32 *>(IntPtr); - + auto *LoadConf = reinterpret_cast<const coff_load_configuration32 *>(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<const Win64EH::UnwindInfo *>( - XContents.data() + UnwindInfoOffset); + auto *UI = reinterpret_cast<const Win64EH::UnwindInfo *>(XContents.data() + + UnwindInfoOffset); printWin64EHUnwindInfo(UI); } |