diff options
Diffstat (limited to 'tools/llvm-dwp')
-rw-r--r-- | tools/llvm-dwp/llvm-dwp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-dwp/llvm-dwp.cpp b/tools/llvm-dwp/llvm-dwp.cpp index 9a43420f710..b88f0ef37d7 100644 --- a/tools/llvm-dwp/llvm-dwp.cpp +++ b/tools/llvm-dwp/llvm-dwp.cpp @@ -395,6 +395,8 @@ static Error write(MCStreamer &Out, ArrayRef<std::string> Inputs) { SmallVector<OwningBinary<object::ObjectFile>, 128> Objects; Objects.reserve(Inputs.size()); + SmallVector<SmallString<32>, 4> UncompressedSections; + for (const auto &Input : Inputs) { auto ErrOrObj = object::ObjectFile::createObjectFile(Input); if (!ErrOrObj) @@ -413,8 +415,6 @@ static Error write(MCStreamer &Out, ArrayRef<std::string> Inputs) { StringRef CurCUIndexSection; StringRef CurTUIndexSection; - SmallVector<SmallString<32>, 4> UncompressedSections; - for (const auto &Section : Obj.sections()) { if (Section.isBSS()) continue; |