aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/FileWriters.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/FileWriters.h')
-rw-r--r--include/llvm/CodeGen/FileWriters.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/FileWriters.h b/include/llvm/CodeGen/FileWriters.h
new file mode 100644
index 000000000000..b3781e0c6012
--- /dev/null
+++ b/include/llvm/CodeGen/FileWriters.h
@@ -0,0 +1,31 @@
+//===-- FileWriters.h - File Writers Creation Functions ---------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// Functions to add the various file writer passes.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CODEGEN_FILEWRITERS_H
+#define LLVM_CODEGEN_FILEWRITERS_H
+
+namespace llvm {
+
+ class PassManagerBase;
+ class MachineCodeEmitter;
+ class TargetMachine;
+ class raw_ostream;
+
+ MachineCodeEmitter *AddELFWriter(PassManagerBase &FPM, raw_ostream &O,
+ TargetMachine &TM);
+ MachineCodeEmitter *AddMachOWriter(PassManagerBase &FPM, raw_ostream &O,
+ TargetMachine &TM);
+
+} // end llvm namespace
+
+#endif // LLVM_CODEGEN_FILEWRITERS_H