MC/Mach-O: Move createMachObjectWriter into MCMachObjectWriter.h.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 16 Dec 2010 16:08:33 +0000 (16:08 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 16 Dec 2010 16:08:33 +0000 (16:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121971 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCMachObjectWriter.h [new file with mode: 0644]
include/llvm/MC/MCObjectWriter.h
lib/MC/MachObjectWriter.cpp
lib/Target/ARM/ARMAsmBackend.cpp
lib/Target/PowerPC/PPCAsmBackend.cpp
lib/Target/X86/X86AsmBackend.cpp

diff --git a/include/llvm/MC/MCMachObjectWriter.h b/include/llvm/MC/MCMachObjectWriter.h
new file mode 100644 (file)
index 0000000..8dc4558
--- /dev/null
@@ -0,0 +1,23 @@
+//===-- llvm/MC/MCMachObjectWriter.h - Mach Object Writer -------*- C++ -*-===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_MC_MCMACHOBJECTWRITER_H
+#define LLVM_MC_MCMACHOBJECTWRITER_H
+
+#include "llvm/MC/MCObjectWriter.h"
+
+namespace llvm {
+
+MCObjectWriter *createMachObjectWriter(raw_ostream &OS, bool is64Bit,
+                                       uint32_t CPUType, uint32_t CPUSubtype,
+                                       bool IsLittleEndian);
+
+} // End llvm namespace
+
+#endif
index b819a5778f31895e905d9cf1d9f2929ff938db04..bae3368f9694bcbf4b30033308368583fd649b15 100644 (file)
@@ -179,9 +179,6 @@ 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,
index 96867e45a40e7151c44d5fe0ec075dc8940183c9..7c6e59175f92df19a7476b8077c9f894b8e3dc1d 100644 (file)
@@ -12,6 +12,7 @@
 #include "llvm/MC/MCAssembler.h"
 #include "llvm/MC/MCAsmLayout.h"
 #include "llvm/MC/MCExpr.h"
+#include "llvm/MC/MCMachObjectWriter.h"
 #include "llvm/MC/MCObjectWriter.h"
 #include "llvm/MC/MCSectionMachO.h"
 #include "llvm/MC/MCSymbol.h"
index f93933d626805e2645a45d126c129955c3736ce6..bd871c0fad35594ea19a98a19c8380abf5498172 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/MC/MCAssembler.h"
 #include "llvm/MC/MCDirectives.h"
 #include "llvm/MC/MCExpr.h"
+#include "llvm/MC/MCMachObjectWriter.h"
 #include "llvm/MC/MCObjectFormat.h"
 #include "llvm/MC/MCObjectWriter.h"
 #include "llvm/MC/MCSectionELF.h"
index 3ee8e8e78997bfb602edf5c811a7356f609a3fcc..c8cd736f1b642666f3357bd80ba210c386ec97ce 100644 (file)
@@ -10,6 +10,7 @@
 #include "llvm/Target/TargetAsmBackend.h"
 #include "PPC.h"
 #include "PPCFixupKinds.h"
+#include "llvm/MC/MCMachObjectWriter.h"
 #include "llvm/MC/MCSectionMachO.h"
 #include "llvm/MC/MCObjectFormat.h"
 #include "llvm/MC/MCObjectWriter.h"
index 202957a1fb1d15f89bda01d6b5dc3ed43b3bdb57..e1c8cb71c97250500ab5a118ecf98893d3d34c26 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/MC/MCAssembler.h"
 #include "llvm/MC/MCExpr.h"
 #include "llvm/MC/MCFixupKindInfo.h"
+#include "llvm/MC/MCMachObjectWriter.h"
 #include "llvm/MC/MCObjectFormat.h"
 #include "llvm/MC/MCObjectWriter.h"
 #include "llvm/MC/MCSectionCOFF.h"