mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Use auto for readability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ab0ce0cde
commit
80f2397fde
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user