2007-02-08 06:05:08 +00:00
|
|
|
//===-- FileWriters.h - File Writers Creation Functions ---------*- C++ -*-===//
|
2007-02-08 01:31:38 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 19:59:42 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-02-08 01:31:38 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Functions to add the various file writer passes.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_CODEGEN_FILEWRITERS_H
|
|
|
|
#define LLVM_CODEGEN_FILEWRITERS_H
|
|
|
|
|
|
|
|
#include <iosfwd>
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2008-03-11 22:29:46 +00:00
|
|
|
class PassManagerBase;
|
2007-02-08 01:31:38 +00:00
|
|
|
class MachineCodeEmitter;
|
|
|
|
class TargetMachine;
|
2008-08-21 00:14:44 +00:00
|
|
|
class raw_ostream;
|
2007-02-08 01:31:38 +00:00
|
|
|
|
2008-08-21 00:14:44 +00:00
|
|
|
MachineCodeEmitter *AddELFWriter(PassManagerBase &FPM, raw_ostream &O,
|
2007-02-08 01:31:38 +00:00
|
|
|
TargetMachine &TM);
|
2008-08-21 00:14:44 +00:00
|
|
|
MachineCodeEmitter *AddMachOWriter(PassManagerBase &FPM, raw_ostream &O,
|
2007-02-08 01:31:38 +00:00
|
|
|
TargetMachine &TM);
|
|
|
|
|
|
|
|
} // end llvm namespace
|
|
|
|
|
|
|
|
#endif // LLVM_CODEGEN_FILEWRITERS_H
|