summaryrefslogtreecommitdiff
path: root/lib/MC/ELFObjectWriter.h
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2011-09-30 21:55:40 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2011-09-30 21:55:40 +0000
commit291512f96fe807da7c1a3a6e001feb1017b56e26 (patch)
tree830f7d5b31e129e12e359985b330446a92bd78cd /lib/MC/ELFObjectWriter.h
parent09a2e0f794e740c6f9572e157b7ebd960eb10d2d (diff)
downloadllvm-291512f96fe807da7c1a3a6e001feb1017b56e26.tar.gz
llvm-291512f96fe807da7c1a3a6e001feb1017b56e26.tar.bz2
llvm-291512f96fe807da7c1a3a6e001feb1017b56e26.tar.xz
Add definition of MipsELFObjectWriter.
Patch by Reed Kotler at Mips Technologies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/ELFObjectWriter.h')
-rw-r--r--lib/MC/ELFObjectWriter.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/MC/ELFObjectWriter.h b/lib/MC/ELFObjectWriter.h
index d657d131bd..862b085c76 100644
--- a/lib/MC/ELFObjectWriter.h
+++ b/lib/MC/ELFObjectWriter.h
@@ -426,6 +426,21 @@ class ELFObjectWriter : public MCObjectWriter {
bool IsPCRel, bool IsRelocWithSymbol,
int64_t Addend);
};
+
+ //===- MipsELFObjectWriter -------------------------------------------===//
+
+ class MipsELFObjectWriter : public ELFObjectWriter {
+ public:
+ MipsELFObjectWriter(MCELFObjectTargetWriter *MOTW,
+ raw_ostream &_OS,
+ bool IsLittleEndian);
+
+ virtual ~MipsELFObjectWriter();
+ protected:
+ virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
+ bool IsPCRel, bool IsRelocWithSymbol,
+ int64_t Addend);
+ };
}
#endif