From 8ac883939b80c029852c2b06ddc95a457f9a3e87 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 31 Aug 2002 00:28:25 +0000 Subject: [PATCH] Convert cwriter to be a pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3557 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Assembly/CWriter.h | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/include/llvm/Assembly/CWriter.h b/include/llvm/Assembly/CWriter.h index b42e16c1960..0608870f471 100644 --- a/include/llvm/Assembly/CWriter.h +++ b/include/llvm/Assembly/CWriter.h @@ -1,21 +1,15 @@ -//===-- llvm/CGen/Writer.h - Printer for VM assembly files -------*- C++ -*--=// -// -// This functionality is implemented by the lib/CWriter library. -// This library is used to print C language files to an iostream. +//===-- llvm/Assembly/CWriter.h - C Printer for LLVM programs --*- C++ -*--===// // +// This functionality is implemented by the lib/CWriter library. This library +// is used to print C language files to an iostream. // //===----------------------------------------------------------------------===// -#ifndef LLVM_C_WRITER_H -#define LLVM_C_WRITER_H - -class Module; +#ifndef LLVM_ASSEMBLY_CWRITER_H +#define LLVM_ASSEMBLY_CWRITER_H #include - -void WriteToC(const Module *Module, std::ostream &o); +class Pass; +Pass *createWriteToCPass(std::ostream &o); #endif - - -