mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
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
This commit is contained in:
18
tools/llvm2cpp/CppWriter.h
Normal file
18
tools/llvm2cpp/CppWriter.h
Normal file
@ -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);
|
||||
}
|
Reference in New Issue
Block a user