diff options
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
| -rw-r--r-- | lld/ELF/OutputSections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 14f206d3b6d..3d3d5a5bb28 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1244,7 +1244,7 @@ void MergeOutputSection<ELFT>::addSection(InputSectionBase<ELFT> *C) { if (!Piece.Live) continue; StringRef Data = toStringRef(Sec->getData(Piece)); - CachedHashString V(Data, Piece.Hash); + CachedHashStringRef V(Data, Piece.Hash); uintX_t OutputOffset = Builder.add(V); if (!shouldTailMerge()) Piece.OutputOff = OutputOffset; @@ -1252,7 +1252,7 @@ void MergeOutputSection<ELFT>::addSection(InputSectionBase<ELFT> *C) { } template <class ELFT> -unsigned MergeOutputSection<ELFT>::getOffset(CachedHashString Val) { +unsigned MergeOutputSection<ELFT>::getOffset(CachedHashStringRef Val) { return Builder.getOffset(Val); } |

