For PR797:
[oota-llvm.git] / tools / gccld / gccld.h
1 //===- gccld.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
17 #include <string>
18 #include <set>
19 #include <ostream>
20
21 namespace llvm {
22
23 int
24 GenerateBytecode (Module *M,
25                   int StripLevel,
26                   bool Internalize,
27                   std::ostream *Out);
28
29 int
30 GenerateAssembly (const std::string &OutputFilename,
31                   const std::string &InputFilename,
32                   const sys::Path &llc,
33                   std::string& ErrMsg,
34                   bool Verbose=false);
35
36 int
37 GenerateCFile (const std::string &OutputFile,
38                const std::string &InputFile,
39                const sys::Path &llc,
40                std::string& ErrMsg,
41                bool Verbose=false);
42 int
43 GenerateNative (const std::string &OutputFilename,
44                 const std::string &InputFilename,
45                 const std::vector<std::string> &LibPaths,
46                 const std::vector<std::string> &Libraries,
47                 const sys::Path &gcc,
48                 char ** const envp,
49                 bool Shared,
50                 bool ExportAllAsDynamic,
51                 const std::vector<std::string> &RPath,
52                 const std::string &SOName,
53                 std::string& ErrMsg,
54                 bool Verbose=false);
55
56 } // End llvm namespace