diff options
| author | Justin Lebar <jlebar@google.com> | 2016-10-17 22:24:36 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2016-10-17 22:24:36 +0000 |
| commit | ee34a7343d9e2333e7657753fdd6cf6fac7570b3 (patch) | |
| tree | 9a8e7c88ab81313073127c12bcbc8584aa1af0ba /lld/ELF/OutputSections.cpp | |
| parent | 61b9b6a9d540e780f7fb1c72f35184ed5529d54a (diff) | |
| download | bcm5719-llvm-ee34a7343d9e2333e7657753fdd6cf6fac7570b3.tar.gz bcm5719-llvm-ee34a7343d9e2333e7657753fdd6cf6fac7570b3.zip | |
[ADT] Move CachedHashString to its own header in ADT, and rename to CachedHashStringRef.
Summary:
Reclaiming the name 'CachedHashString' will let us add a type with that
name that owns its value.
Reviewers: timshen
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D25644
llvm-svn: 284434
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); } |

