summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCELFObjectWriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/MC/MCELFObjectWriter.h')
-rw-r--r--include/llvm/MC/MCELFObjectWriter.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/llvm/MC/MCELFObjectWriter.h b/include/llvm/MC/MCELFObjectWriter.h
index f8470ecdc5..92ad1b1a46 100644
--- a/include/llvm/MC/MCELFObjectWriter.h
+++ b/include/llvm/MC/MCELFObjectWriter.h
@@ -42,18 +42,6 @@ struct ELFRelocationEntry {
const MCSymbol *Sym, uint64_t Addend, const MCFixup &Fixup)
: r_offset(RelocOffset), Index(Idx), Type(RelType), Symbol(Sym),
r_addend(Addend), Fixup(&Fixup) {}
-
- // Support lexicographic sorting.
- bool operator<(const ELFRelocationEntry &RE) const {
- if (RE.r_offset != r_offset)
- return RE.r_offset < r_offset;
- if (Type != RE.Type)
- return Type < RE.Type;
- if (Index != RE.Index)
- return Index < RE.Index;
- llvm_unreachable("ELFRelocs might be unstable!");
- return 0;
- }
};
class MCELFObjectTargetWriter {