diff options
Diffstat (limited to 'lld/ELF/InputFiles.h')
| -rw-r--r-- | lld/ELF/InputFiles.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lld/ELF/InputFiles.h b/lld/ELF/InputFiles.h index 8b0e2e3f0bc..6daf2664985 100644 --- a/lld/ELF/InputFiles.h +++ b/lld/ELF/InputFiles.h @@ -17,6 +17,7 @@ #include "lld/Core/LLVM.h" #include "lld/Core/Reproduce.h" +#include "llvm/ADT/CachedHashString.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/STLExtras.h" #include "llvm/IR/Comdat.h" @@ -156,7 +157,7 @@ public: ArrayRef<SymbolBody *> getLocalSymbols(); ObjectFile(MemoryBufferRef M, StringRef ArchiveName); - void parse(llvm::DenseSet<StringRef> &ComdatGroups); + void parse(llvm::DenseSet<llvm::CachedHashStringRef> &ComdatGroups); InputSectionBase *getSection(const Elf_Sym &Sym) const; @@ -188,7 +189,8 @@ public: StringRef SourceFile; private: - void initializeSections(llvm::DenseSet<StringRef> &ComdatGroups); + void + initializeSections(llvm::DenseSet<llvm::CachedHashStringRef> &ComdatGroups); void initializeSymbols(); void initializeDwarfLine(); InputSectionBase *getRelocTarget(const Elf_Shdr &Sec); @@ -263,7 +265,8 @@ public: BitcodeFile(MemoryBufferRef M, StringRef ArchiveName, uint64_t OffsetInArchive); static bool classof(const InputFile *F) { return F->kind() == BitcodeKind; } - template <class ELFT> void parse(llvm::DenseSet<StringRef> &ComdatGroups); + template <class ELFT> + void parse(llvm::DenseSet<llvm::CachedHashStringRef> &ComdatGroups); ArrayRef<Symbol *> getSymbols() { return Symbols; } std::unique_ptr<llvm::lto::InputFile> Obj; |

