forked from OSchip/llvm-project
parent
1654511884
commit
fc3a975d85
|
@ -26,14 +26,13 @@ public:
|
|||
HexagonTargetRelocationHandler(
|
||||
const HexagonLinkingContext &context, const HexagonTargetHandler &tH,
|
||||
const HexagonTargetLayout<HexagonELFType> &layout)
|
||||
: _context(context), _targetHandler(tH), _targetLayout(layout) {}
|
||||
: _targetHandler(tH), _targetLayout(layout) {}
|
||||
|
||||
virtual error_code
|
||||
applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
|
||||
const lld::AtomLayout &, const Reference &) const;
|
||||
|
||||
private:
|
||||
const HexagonLinkingContext &_context;
|
||||
const HexagonTargetHandler &_targetHandler;
|
||||
const HexagonTargetLayout<HexagonELFType> &_targetLayout;
|
||||
};
|
||||
|
|
|
@ -93,7 +93,7 @@ void relocCall16(uint8_t *location, uint64_t P, uint64_t S, int64_t A,
|
|||
|
||||
MipsTargetRelocationHandler::MipsTargetRelocationHandler(
|
||||
const MipsLinkingContext &context, const MipsTargetHandler &handler)
|
||||
: _context(context), _targetHandler(handler) {}
|
||||
: _targetHandler(handler) {}
|
||||
|
||||
void
|
||||
MipsTargetRelocationHandler::savePairedRelocation(const lld::AtomLayout &atom,
|
||||
|
|
|
@ -27,7 +27,6 @@ public:
|
|||
const Reference &) const;
|
||||
|
||||
private:
|
||||
const MipsLinkingContext &_context;
|
||||
const MipsTargetHandler &_targetHandler;
|
||||
|
||||
typedef std::vector<const Reference *> PairedRelocationsT;
|
||||
|
|
|
@ -21,15 +21,12 @@ class PPCLinkingContext;
|
|||
class PPCTargetRelocationHandler LLVM_FINAL
|
||||
: public TargetRelocationHandler<PPCELFType> {
|
||||
public:
|
||||
PPCTargetRelocationHandler(const PPCLinkingContext &context)
|
||||
: _context(context) {}
|
||||
PPCTargetRelocationHandler(const PPCLinkingContext &context) {}
|
||||
|
||||
virtual error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
|
||||
const lld::AtomLayout &,
|
||||
const Reference &) const;
|
||||
|
||||
private:
|
||||
const PPCLinkingContext &_context;
|
||||
};
|
||||
|
||||
class PPCTargetHandler LLVM_FINAL
|
||||
|
|
|
@ -24,8 +24,7 @@ class X86LinkingContext;
|
|||
class X86TargetRelocationHandler LLVM_FINAL
|
||||
: public TargetRelocationHandler<X86ELFType> {
|
||||
public:
|
||||
X86TargetRelocationHandler(const X86LinkingContext &context)
|
||||
: _context(context) {}
|
||||
X86TargetRelocationHandler(const X86LinkingContext &context) {}
|
||||
|
||||
virtual error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
|
||||
const lld::AtomLayout &,
|
||||
|
@ -33,8 +32,6 @@ public:
|
|||
|
||||
static const Registry::KindStrings kindStrings[];
|
||||
|
||||
private:
|
||||
const X86LinkingContext &_context;
|
||||
};
|
||||
|
||||
class X86TargetHandler LLVM_FINAL
|
||||
|
|
Loading…
Reference in New Issue