diff options
Diffstat (limited to 'lld/ELF/Symbols.h')
| -rw-r--r-- | lld/ELF/Symbols.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index 83aebf2aecd..d7647e79452 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -13,6 +13,7 @@ #ifndef LLD_ELF_SYMBOLS_H #define LLD_ELF_SYMBOLS_H +#include "InputFiles.h" #include "InputSection.h" #include "lld/Common/LLVM.h" #include "lld/Common/Strings.h" @@ -30,8 +31,6 @@ std::string toString(const elf::InputFile *); namespace elf { -template <class ELFT> class SharedFile; - // This is a StringRef-like container that doesn't run strlen(). // // ELF string tables contain a lot of null-terminated strings. Most of them @@ -266,9 +265,7 @@ public: this->Type = llvm::ELF::STT_FUNC; } - template <class ELFT> SharedFile<ELFT> &getFile() const { - return *cast<SharedFile<ELFT>>(File); - } + SharedFile &getFile() const { return *cast<SharedFile>(File); } uint32_t Alignment; |

