diff --git a/tools/llvm-dwp/llvm-dwp.cpp b/tools/llvm-dwp/llvm-dwp.cpp index 941083f5c3f..7bd3d3f3f4d 100644 --- a/tools/llvm-dwp/llvm-dwp.cpp +++ b/tools/llvm-dwp/llvm-dwp.cpp @@ -39,6 +39,7 @@ #include "llvm/Support/TargetSelect.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetMachine.h" +#include #include #include @@ -360,7 +361,7 @@ std::string buildDWODescription(StringRef Name, StringRef DWPName, StringRef DWO } static Error handleCompressedSection( - SmallVector, 4> &UncompressedSections, StringRef &Name, + std::deque> &UncompressedSections, StringRef &Name, StringRef &Contents) { if (!Name.startswith("zdebug_")) return Error(); @@ -384,7 +385,7 @@ static Error handleSection( const MCSection *StrSection, const MCSection *StrOffsetSection, const MCSection *TypesSection, const MCSection *CUIndexSection, const MCSection *TUIndexSection, const SectionRef &Section, MCStreamer &Out, - SmallVector, 4> &UncompressedSections, + std::deque> &UncompressedSections, uint32_t (&ContributionOffsets)[8], UnitIndexEntry &CurEntry, StringRef &CurStrSection, StringRef &CurStrOffsetSection, std::vector &CurTypesSection, StringRef &InfoSection, @@ -489,7 +490,7 @@ static Error write(MCStreamer &Out, ArrayRef Inputs) { SmallVector, 128> Objects; Objects.reserve(Inputs.size()); - SmallVector, 4> UncompressedSections; + std::deque> UncompressedSections; for (const auto &Input : Inputs) { auto ErrOrObj = object::ObjectFile::createObjectFile(Input);