diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-11-13 07:33:40 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-11-13 07:33:40 +0000 |
commit | 115a3dd066c277c5417f4d9b9f642b732b76f4e7 (patch) | |
tree | 5e0b26f15fda2285f3afbff6ad4f6de8e4d33dae /include/llvm/MC/MCObjectWriter.h | |
parent | 90eff7337d36b0398a22eac29da87c9c07b03b78 (diff) |
MC: Simplify Mach-O and ELF object writer implementations.
- What was I thinking?????
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCObjectWriter.h')
-rw-r--r-- | include/llvm/MC/MCObjectWriter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/MC/MCObjectWriter.h b/include/llvm/MC/MCObjectWriter.h index 6814cb537b..77ab6abed2 100644 --- a/include/llvm/MC/MCObjectWriter.h +++ b/include/llvm/MC/MCObjectWriter.h @@ -10,6 +10,7 @@ #ifndef LLVM_MC_MCOBJECTWRITER_H #define LLVM_MC_MCOBJECTWRITER_H +#include "llvm/ADT/Triple.h" #include "llvm/Support/raw_ostream.h" #include "llvm/System/DataTypes.h" #include <cassert> @@ -177,6 +178,13 @@ public: static void EncodeULEB128(uint64_t Value, raw_ostream &OS); }; +MCObjectWriter *createMachObjectWriter(raw_ostream &OS, bool is64Bit, + uint32_t CPUType, uint32_t CPUSubtype, + bool IsLittleEndian); +MCObjectWriter *createELFObjectWriter(raw_ostream &OS, bool is64Bit, + Triple::OSType OSType, uint16_t EMachine, + bool IsLittleEndian, + bool HasRelocationAddend); MCObjectWriter *createWinCOFFObjectWriter(raw_ostream &OS, bool is64Bit); } // End llvm namespace |