From 077b16aa6cc488a5ad3db2f607ba74647420bb54 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 3 Aug 2022 21:51:39 -0700 Subject: [PATCH] [ELF] Remove unneeded make. NFC --- lld/ELF/InputFiles.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 77dc750..378023a 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -871,8 +871,8 @@ InputSectionBase *ObjFile::createInputSection(uint32_t idx, if (Error e = attributes.parse(contents, config->ekind == ELF32LEKind ? support::little : support::big)) { - auto *isec = make(*this, sec, name); - warn(toString(isec) + ": " + llvm::toString(std::move(e))); + InputSection isec(*this, sec, name); + warn(toString(&isec) + ": " + llvm::toString(std::move(e))); } else { updateSupportedARMFeatures(attributes); updateARMVFPArgs(attributes, this); @@ -893,8 +893,8 @@ InputSectionBase *ObjFile::createInputSection(uint32_t idx, RISCVAttributeParser attributes; ArrayRef contents = check(this->getObj().getSectionContents(sec)); if (Error e = attributes.parse(contents, support::little)) { - auto *isec = make(*this, sec, name); - warn(toString(isec) + ": " + llvm::toString(std::move(e))); + InputSection isec(*this, sec, name); + warn(toString(&isec) + ": " + llvm::toString(std::move(e))); } else { // FIXME: Validate arch tag contains C if and only if EF_RISCV_RVC is // present. -- 2.7.4