diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-05-29 00:57:22 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-05-29 00:57:22 +0000 |
commit | fb0c0dc9604ffba751bdaf272a7ba8cbd29f5860 (patch) | |
tree | 0b2aeef2d20af282b285658bffe4a269797baf90 /tools/llvm2cpp/CppWriter.h | |
parent | bd82277cbbd93f8704a6bf52c4842c5e71fb675f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm2cpp/CppWriter.h')
-rw-r--r-- | tools/llvm2cpp/CppWriter.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/llvm2cpp/CppWriter.h b/tools/llvm2cpp/CppWriter.h new file mode 100644 index 0000000000..16ba30e5bf --- /dev/null +++ b/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); +} |