Add the Object Code Emitter class. Original patch by Aaron Gray, I did some
[oota-llvm.git] / include / llvm / CodeGen / FileWriters.h
1 //===-- FileWriters.h - File Writers Creation Functions ---------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Functions to add the various file writer passes.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_CODEGEN_FILEWRITERS_H
15 #define LLVM_CODEGEN_FILEWRITERS_H
16
17 namespace llvm {
18
19   class PassManagerBase;
20   class ObjectCodeEmitter;
21   class TargetMachine;
22   class raw_ostream;
23
24   ObjectCodeEmitter *AddELFWriter(PassManagerBase &FPM, raw_ostream &O,
25                                   TargetMachine &TM);
26   ObjectCodeEmitter *AddMachOWriter(PassManagerBase &FPM, raw_ostream &O,
27                                     TargetMachine &TM);
28
29 } // end llvm namespace
30
31 #endif // LLVM_CODEGEN_FILEWRITERS_H