0b1f920937afcb9035c324664ba13f51c9b3b797
[oota-llvm.git] / tools / llvm-ld / llvm-ld.h
1 //===- llvm-ld.h - Utility functions header file ----------------*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains function prototypes for the functions in util.cpp.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "llvm/Module.h"
15 #include "llvm/Linker.h"
16 #include <ostream>
17
18 namespace llvm {
19
20 int
21 GenerateBytecode (Module * M,
22                   bool Strip,
23                   bool Internalize,
24                   std::ostream * Out);
25
26 int
27 GenerateAssembly (const std::string & OutputFilename,
28                   const std::string & InputFilename,
29                   const std::string & llc,
30                   char ** const envp);
31
32 int GenerateCFile(const std::string &OutputFile, const std::string &InputFile,
33                   const std::string &llc, char ** const envp);
34 int
35 GenerateNative (const std::string & OutputFilename,
36                 const std::string & InputFilename,
37                 const std::vector<std::string> & Libraries,
38                 const std::vector<std::string> & LibPaths,
39                 const std::string & gcc,
40                 char ** const envp);
41
42 } // End llvm namespace