There are two reasons why we might want to use
[oota-llvm.git] / include / llvm / MC / MCObjectWriter.h
index 6814cb537bfc848ca56a55e3259ea9c11c3db9ac..90fe6e8ee15074712155cbfd25c68a12dd07f62f 100644 (file)
@@ -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 <cassert>
 
 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