mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 19:44:38 +08:00
Replace typedef A B with using B = A. NFC.
I did this using Perl. Differential Revision: https://reviews.llvm.org/D60003 llvm-svn: 357372
This commit is contained in:
@@ -210,8 +210,8 @@ OutputSection *SectionBase::getOutputSection() {
|
||||
// by zlib-compressed data. This function parses a header to initialize
|
||||
// `UncompressedSize` member and remove the header from `RawData`.
|
||||
void InputSectionBase::parseCompressedHeader() {
|
||||
typedef typename ELF64LE::Chdr Chdr64;
|
||||
typedef typename ELF32LE::Chdr Chdr32;
|
||||
using Chdr64 = typename ELF64LE::Chdr;
|
||||
using Chdr32 = typename ELF32LE::Chdr;
|
||||
|
||||
// Old-style header
|
||||
if (Name.startswith(".zdebug")) {
|
||||
@@ -380,7 +380,7 @@ OutputSection *InputSection::getParent() const {
|
||||
// Copy SHT_GROUP section contents. Used only for the -r option.
|
||||
template <class ELFT> void InputSection::copyShtGroup(uint8_t *Buf) {
|
||||
// ELFT::Word is the 32-bit integral type in the target endianness.
|
||||
typedef typename ELFT::Word u32;
|
||||
using u32 = typename ELFT::Word;
|
||||
ArrayRef<u32> From = getDataAs<u32>();
|
||||
auto *To = reinterpret_cast<u32 *>(Buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user