diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-14 15:39:25 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-14 15:39:25 +0000 | 
| commit | 1eafc0458f4bb4547fe78c62b78312ad4f719c38 (patch) | |
| tree | db247ebc1d3d05750e31ef4b162cf9ab4af9ddef /ELF/Driver.cpp | |
| parent | b047fead11133644be3dbae34b85be39ce2819e9 (diff) | |
Diffstat (limited to 'ELF/Driver.cpp')
| -rw-r--r-- | ELF/Driver.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/ELF/Driver.cpp b/ELF/Driver.cpp index c8ea821ec5220..b4544d78f7253 100644 --- a/ELF/Driver.cpp +++ b/ELF/Driver.cpp @@ -24,6 +24,7 @@  #include "lld/Driver/Driver.h"  #include "llvm/ADT/StringExtras.h"  #include "llvm/ADT/StringSwitch.h" +#include "llvm/Object/Decompressor.h"  #include "llvm/Support/CommandLine.h"  #include "llvm/Support/Path.h"  #include "llvm/Support/TarWriter.h" @@ -815,7 +816,7 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &Args) {            [](InputSectionBase<ELFT> *S) {              if (!S->Live)                return; -            if (S->isCompressed()) +            if (Decompressor::isCompressedELFSection(S->Flags, S->Name))                S->uncompress();              if (auto *MS = dyn_cast<MergeInputSection<ELFT>>(S))                MS->splitIntoPieces();  | 
