diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2018-05-23 01:58:43 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2018-05-23 01:58:43 +0000 |
commit | ce95ae22bf513cc0b92f4f661df7069f8928dff2 (patch) | |
tree | c3218ad59fc73d2bb0074aa2d59d16d86cc92b31 /lld/ELF/Writer.h | |
parent | b5be922bfe85e34b0564ebd8d5c0395e7bab8919 (diff) |
ELF: Do not ICF two sections with different output sections.
Note that this doesn't do the right thing in the case where there is
a linker script. We probably need to move output section assignment
before ICF to get the correct behaviour here.
Differential Revision: https://reviews.llvm.org/D47241
Diffstat (limited to 'lld/ELF/Writer.h')
-rw-r--r-- | lld/ELF/Writer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h index 41f1e550eeb..7806f824c58 100644 --- a/lld/ELF/Writer.h +++ b/lld/ELF/Writer.h @@ -48,7 +48,7 @@ struct PhdrEntry { }; void addReservedSymbols(); -llvm::StringRef getOutputSectionName(InputSectionBase *S); +llvm::StringRef getOutputSectionName(const InputSectionBase *S); template <class ELFT> uint32_t calcMipsEFlags(); |