[Mips] Add assert to check that we handle all paired relocations.

llvm-svn: 198789
This commit is contained in:
Simon Atanasyan 2014-01-08 20:42:52 +00:00
parent 2ab9f28977
commit 05c88f9b61
2 changed files with 6 additions and 0 deletions

View File

@ -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 {

View File

@ -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;