aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/ELFObjectWriter.h
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2011-08-02 15:51:38 +0000
committerRoman Divacky <rdivacky@freebsd.org>2011-08-02 15:51:38 +0000
commit2c0d69fad0e658117922f3d96d9b732bedf9fd47 (patch)
treea147b8292c94f2bdad9a4f855cd2e177cd4e7010 /lib/MC/ELFObjectWriter.h
parent086da7e6809cc6044dd94b77dfb85626553cc7ae (diff)
downloadexternal_llvm-2c0d69fad0e658117922f3d96d9b732bedf9fd47.zip
external_llvm-2c0d69fad0e658117922f3d96d9b732bedf9fd47.tar.gz
external_llvm-2c0d69fad0e658117922f3d96d9b732bedf9fd47.tar.bz2
Sketch out PowerPC ELF writer. This is enough to get clang -integrated-as
to compile a working hello world on FreeBSD/PPC32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136689 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 7593099..45a8898 100644
--- a/lib/MC/ELFObjectWriter.h
+++ b/lib/MC/ELFObjectWriter.h
@@ -395,6 +395,21 @@ class ELFObjectWriter : public MCObjectWriter {
};
+ //===- PPCELFObjectWriter -------------------------------------------===//
+
+ class PPCELFObjectWriter : public ELFObjectWriter {
+ public:
+ PPCELFObjectWriter(MCELFObjectTargetWriter *MOTW,
+ raw_ostream &_OS,
+ bool IsLittleEndian);
+
+ virtual ~PPCELFObjectWriter();
+ protected:
+ virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
+ bool IsPCRel, bool IsRelocWithSymbol,
+ int64_t Addend);
+ };
+
//===- MBlazeELFObjectWriter -------------------------------------------===//
class MBlazeELFObjectWriter : public ELFObjectWriter {