if (Error e = attributes.parse(contents, config->ekind == ELF32LEKind
? support::little
: support::big)) {
- auto *isec = make<InputSection>(*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);
RISCVAttributeParser attributes;
ArrayRef<uint8_t> contents = check(this->getObj().getSectionContents(sec));
if (Error e = attributes.parse(contents, support::little)) {
- auto *isec = make<InputSection>(*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.