LLVM API Documentation

FileWriters.h

Go to the documentation of this file.
00001 //===-- FileWriters.h - File Writers Creation Functions ---------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // Functions to add the various file writer passes.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef LLVM_CODEGEN_FILEWRITERS_H
00015 #define LLVM_CODEGEN_FILEWRITERS_H
00016 
00017 namespace llvm {
00018 
00019   class PassManagerBase;
00020   class MachineCodeEmitter;
00021   class TargetMachine;
00022   class raw_ostream;
00023 
00024   MachineCodeEmitter *AddELFWriter(PassManagerBase &FPM, raw_ostream &O,
00025                                    TargetMachine &TM);
00026   MachineCodeEmitter *AddMachOWriter(PassManagerBase &FPM, raw_ostream &O,
00027                                      TargetMachine &TM);
00028 
00029 } // end llvm namespace
00030 
00031 #endif // LLVM_CODEGEN_FILEWRITERS_H