Skip to content

Commit 077b16a

Browse files
committed
[ELF] Remove unneeded make<InputSection>. NFC
1 parent e2a932d commit 077b16a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lld/ELF/InputFiles.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -871,8 +871,8 @@ InputSectionBase *ObjFile<ELFT>::createInputSection(uint32_t idx,
871871
if (Error e = attributes.parse(contents, config->ekind == ELF32LEKind
872872
? support::little
873873
: support::big)) {
874-
auto *isec = make<InputSection>(*this, sec, name);
875-
warn(toString(isec) + ": " + llvm::toString(std::move(e)));
874+
InputSection isec(*this, sec, name);
875+
warn(toString(&isec) + ": " + llvm::toString(std::move(e)));
876876
} else {
877877
updateSupportedARMFeatures(attributes);
878878
updateARMVFPArgs(attributes, this);
@@ -893,8 +893,8 @@ InputSectionBase *ObjFile<ELFT>::createInputSection(uint32_t idx,
893893
RISCVAttributeParser attributes;
894894
ArrayRef<uint8_t> contents = check(this->getObj().getSectionContents(sec));
895895
if (Error e = attributes.parse(contents, support::little)) {
896-
auto *isec = make<InputSection>(*this, sec, name);
897-
warn(toString(isec) + ": " + llvm::toString(std::move(e)));
896+
InputSection isec(*this, sec, name);
897+
warn(toString(&isec) + ": " + llvm::toString(std::move(e)));
898898
} else {
899899
// FIXME: Validate arch tag contains C if and only if EF_RISCV_RVC is
900900
// present.

0 commit comments

Comments
 (0)