summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-03-04 04:15:59 +0000
committerRui Ueyama <ruiu@google.com>2014-03-04 04:15:59 +0000
commit8c1d4c948a00feb5d379ab74d186da8086c8ed59 (patch)
treec1e00db7a5e5d870417559b4bd38a571755cd385 /llvm/tools
parent9c674e68519af463541058bcb44550f827f0958d (diff)
downloadbcm5719-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.cpp8
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);
}
OpenPOWER on IntegriCloud