1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/tools/llvm2cpp/CppWriter.h
Reid Spencer 8bd3003e72 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
2006-05-29 00:57:22 +00:00

19 lines
721 B
C++

//===--- 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);
}