Initial add for MachO support for yaml2obj
Adding the initial files for adding MachO support to yaml2obj. Passing a MachO file will result in an error.
I will be implementing obj2yaml and yaml2obj for MachO in parallel so that one can be used to test the other.
llvm-svn: 269244
diff --git a/llvm/tools/yaml2obj/yaml2macho.cpp b/llvm/tools/yaml2obj/yaml2macho.cpp
new file mode 100644
index 0000000..09a94ce
--- /dev/null
+++ b/llvm/tools/yaml2obj/yaml2macho.cpp
@@ -0,0 +1,23 @@
+//===- yaml2macho - Convert YAML to a Mach object file --------------------===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// \brief The Mach component of yaml2obj.
+///
+//===----------------------------------------------------------------------===//
+
+#include "yaml2obj.h"
+#include "llvm/Support/raw_ostream.h"
+
+using namespace llvm;
+
+int yaml2macho(llvm::yaml::Input &YIn, llvm::raw_ostream &Out) {
+  errs() << "yaml2obj: Mach-O not implemented yet!\n";
+  return 1;
+}