make MachineFunction keep track of its ID and make
[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   class formatted_raw_ostream;
24   class MachineFunctionPass;
25   class MCAsmInfo;
26   class MCCodeEmitter;
27
28   ObjectCodeEmitter *AddELFWriter(PassManagerBase &FPM, raw_ostream &O,
29                                   TargetMachine &TM);
30   MachineFunctionPass *createMachOWriter(formatted_raw_ostream &O,
31                                          TargetMachine &TM,
32                                          const MCAsmInfo *T, 
33                                          MCCodeEmitter *MCE);
34
35 } // end llvm namespace
36
37 #endif // LLVM_CODEGEN_FILEWRITERS_H