1 //===-- FileWriters.h - File Writers Creation Functions ---------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by Bill Wendling and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Functions to add the various file writer passes.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CODEGEN_FILEWRITERS_H
15 #define LLVM_CODEGEN_FILEWRITERS_H
21 class FunctionPassManager;
22 class MachineCodeEmitter;
25 MachineCodeEmitter *AddELFWriter(FunctionPassManager &FPM, std::ostream &O,
27 MachineCodeEmitter *AddMachOWriter(FunctionPassManager &FPM, std::ostream &O,
30 } // end llvm namespace
32 #endif // LLVM_CODEGEN_FILEWRITERS_H