X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FMC%2FMCObjectWriter.h;h=90fe6e8ee15074712155cbfd25c68a12dd07f62f;hb=5d4918dbd116b0b5e561c431b1ea527ee1b9302a;hp=6814cb537bfc848ca56a55e3259ea9c11c3db9ac;hpb=8f413fa9c00dbaea000ddfe265ab5edd285ea3ab;p=oota-llvm.git diff --git a/include/llvm/MC/MCObjectWriter.h b/include/llvm/MC/MCObjectWriter.h index 6814cb537bf..90fe6e8ee15 100644 --- a/include/llvm/MC/MCObjectWriter.h +++ b/include/llvm/MC/MCObjectWriter.h @@ -10,8 +10,9 @@ #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 "llvm/Support/DataTypes.h" #include namespace llvm { @@ -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