diff options
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/ELFFile.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/ELFFile.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ELFFile.cpp b/lld/lib/ReaderWriter/ELF/ELFFile.cpp index 6a1979325f5..e25662feefd 100644 --- a/lld/lib/ReaderWriter/ELF/ELFFile.cpp +++ b/lld/lib/ReaderWriter/ELF/ELFFile.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "ELFFile.h" +#include "FileCommon.h" #include "llvm/ADT/STLExtras.h" namespace lld { @@ -27,6 +28,12 @@ ELFFile<ELFT>::ELFFile(std::unique_ptr<MemoryBuffer> mb, ELFLinkingContext &ctx) _useWrap(ctx.wrapCalls().size()), _ctx(ctx) {} template <typename ELFT> +std::error_code ELFFile<ELFT>::isCompatible(const MemoryBuffer &mb, + ELFLinkingContext &ctx) { + return lld::elf::isCompatible<ELFT>(mb, ctx); +} + +template <typename ELFT> Atom *ELFFile<ELFT>::findAtom(const Elf_Sym *sourceSym, const Elf_Sym *targetSym) { // Return the atom for targetSym if we can do so. |

