aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-02-08 01:31:38 +0000
committerBill Wendling <isanbard@gmail.com>2007-02-08 01:31:38 +0000
commit529f0690d5aa0672be42b90184177ddf55210b23 (patch)
tree0465f773668e07163b7d2e2029f59ae036e7012f
parent4b2ca1a3c4231cd05366565e91ce09ec9fc3d3c9 (diff)
Declarations for functions that create different file writers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34028 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/FileWriters.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/FileWriters.h b/include/llvm/CodeGen/FileWriters.h
new file mode 100644
index 0000000000..26632541d9
--- /dev/null
+++ b/include/llvm/CodeGen/FileWriters.h
@@ -0,0 +1,32 @@
+//===-- FileWriters.cpp - File Writers Creation Functions -------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Bill Wendling and 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
+
+#include <iosfwd>
+
+namespace llvm {
+
+ class FunctionPassManager;
+ class MachineCodeEmitter;
+ class TargetMachine;
+
+ MachineCodeEmitter *AddELFWriter(FunctionPassManager &FPM, std::ostream &O,
+ TargetMachine &TM);
+ MachineCodeEmitter *AddMachOWriter(FunctionPassManager &FPM, std::ostream &O,
+ TargetMachine &TM);
+
+} // end llvm namespace
+
+#endif // LLVM_CODEGEN_FILEWRITERS_H