The canParse function for all the ELF subtargets check if the input files match the subtarget. There were few mismatches in the input files that didnt match the subtarget for which the link was being invoked, which also acts as a test for this change. llvm-svn: 220182
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
//===- lib/ReaderWriter/ELF/PPCELFFile.h -------------------------------===//
|
|
//
|
|
// The LLVM Linker
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLD_READER_WRITER_ELF_PPC_ELF_FILE_H
|
|
#define LLD_READER_WRITER_ELF_PPC_ELF_FILE_H
|
|
|
|
#include "ELFReader.h"
|
|
|
|
namespace lld {
|
|
namespace elf {
|
|
|
|
class PPCLinkingContext;
|
|
|
|
template <class ELFT> class PPCELFFile : public ELFFile<ELFT> {
|
|
public:
|
|
PPCELFFile(StringRef name) : ELFFile<ELFT>(name) {}
|
|
|
|
PPCELFFile(std::unique_ptr<MemoryBuffer> mb, bool atomizeStrings,
|
|
TargetHandlerBase *handler, std::error_code &ec)
|
|
: ELFFile<ELFT>(std::move(mb), atomizeStrings, handler, ec) {}
|
|
};
|
|
|
|
template <class ELFT> class PPCDynamicFile : public DynamicFile<ELFT> {
|
|
public:
|
|
PPCDynamicFile(const PPCLinkingContext &context, StringRef name)
|
|
: DynamicFile<ELFT>(context, name) {}
|
|
};
|
|
|
|
} // elf
|
|
} // lld
|
|
|
|
#endif // LLD_READER_WRITER_ELF_PPC_ELF_FILE_H
|