summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm2cpp/CppWriter.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-05-29 00:57:22 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-05-29 00:57:22 +0000
commit58d5dce11de7dacc658104cae809e0810a2717c8 (patch)
treec73d5cb8da758e994550adf51e3dbef61a9647ca /llvm/tools/llvm2cpp/CppWriter.h
parent152d063ccbf07190cd672b520d0faf4bfe76330b (diff)
downloadbcm5719-llvm-58d5dce11de7dacc658104cae809e0810a2717c8.tar.gz
bcm5719-llvm-58d5dce11de7dacc658104cae809e0810a2717c8.zip
Initial Commit of llvm2cpp
This is a safekeeping commit. The program is not finished. It currently handles modules, types, global variables and function declarations. Blocks and instructions remain to be done. llvm-svn: 28528
Diffstat (limited to 'llvm/tools/llvm2cpp/CppWriter.h')
-rw-r--r--llvm/tools/llvm2cpp/CppWriter.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/tools/llvm2cpp/CppWriter.h b/llvm/tools/llvm2cpp/CppWriter.h
new file mode 100644
index 00000000000..16ba30e5bfc
--- /dev/null
+++ b/llvm/tools/llvm2cpp/CppWriter.h
@@ -0,0 +1,18 @@
+//===--- CppWriter.h - Generate C++ IR to C++ Source Interface ------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Reid Spencer and is distributed under the
+// University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file declares a function, WriteModuleToCppFile that will convert a
+// Module into the corresponding C++ code to construct the same module.
+//
+//===------------------------------------------------------------------------===
+#include <ostream>
+namespace llvm {
+class Module;
+void WriteModuleToCppFile(Module* mod, std::ostream& out);
+}
OpenPOWER on IntegriCloud