forked from OSchip/llvm-project
[Mips] Add assert to check that we handle all paired relocations.
llvm-svn: 198789
This commit is contained in:
parent
2ab9f28977
commit
05c88f9b61
|
@ -95,6 +95,10 @@ MipsTargetRelocationHandler::MipsTargetRelocationHandler(
|
|||
const MipsLinkingContext &context, const MipsTargetHandler &handler)
|
||||
: _targetHandler(handler) {}
|
||||
|
||||
MipsTargetRelocationHandler::~MipsTargetRelocationHandler() {
|
||||
assert(_pairedRelocations.empty());
|
||||
}
|
||||
|
||||
void
|
||||
MipsTargetRelocationHandler::savePairedRelocation(const lld::AtomLayout &atom,
|
||||
const Reference &ref) const {
|
||||
|
|
|
@ -22,6 +22,8 @@ public:
|
|||
MipsTargetRelocationHandler(const MipsLinkingContext &context,
|
||||
const MipsTargetHandler &handler);
|
||||
|
||||
~MipsTargetRelocationHandler();
|
||||
|
||||
virtual error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
|
||||
const lld::AtomLayout &,
|
||||
const Reference &) const;
|
||||
|
|
Loading…
Reference in New Issue