40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
//===- lib/ReaderWriter/ELF/Hexagon/PPCTargetInfo.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_TARGETINFO_H
|
|
#define LLD_READER_WRITER_ELF_PPC_TARGETINFO_H
|
|
|
|
#include "PPCTargetHandler.h"
|
|
|
|
#include "lld/ReaderWriter/ELFTargetInfo.h"
|
|
|
|
#include "llvm/Object/ELF.h"
|
|
#include "llvm/Support/ELF.h"
|
|
|
|
namespace lld {
|
|
namespace elf {
|
|
class PPCTargetInfo LLVM_FINAL : public ELFTargetInfo {
|
|
public:
|
|
PPCTargetInfo(llvm::Triple triple)
|
|
: ELFTargetInfo(triple, std::unique_ptr<TargetHandlerBase>(new PPCTargetHandler(*this))) {}
|
|
|
|
virtual bool isLittleEndian() const { return false; }
|
|
|
|
/// \brief PPC has no relative relocations defined
|
|
virtual bool isRelativeReloc(const Reference &) const { return false; }
|
|
|
|
virtual ErrorOr<Reference::Kind> relocKindFromString(StringRef str) const;
|
|
virtual ErrorOr<std::string> stringFromRelocKind(Reference::Kind kind) const;
|
|
};
|
|
|
|
} // elf
|
|
} // lld
|
|
|
|
#endif // LLD_READER_WRITER_ELF_PPC_TARGETINFO_H
|