Brian Gaeke | aee4de9 | 2003-11-05 22:13:10 +0000 | [diff] [blame] | 1 | //===- gccld.h - Utility functions header file ------------------*- C++ -*-===// |
Misha Brukman | 3da94ae | 2005-04-22 00:00:37 +0000 | [diff] [blame] | 2 | // |
John Criswell | 7c0e022 | 2003-10-20 17:47:21 +0000 | [diff] [blame] | 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. |
Misha Brukman | 3da94ae | 2005-04-22 00:00:37 +0000 | [diff] [blame] | 7 | // |
John Criswell | 7c0e022 | 2003-10-20 17:47:21 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
John Criswell | f430434 | 2003-09-19 20:24:40 +0000 | [diff] [blame] | 9 | // |
| 10 | // This file contains function prototypes for the functions in util.cpp. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "llvm/Module.h" |
Reid Spencer | 6903c86 | 2004-11-14 22:17:49 +0000 | [diff] [blame] | 15 | #include "llvm/Linker.h" |
John Criswell | f430434 | 2003-09-19 20:24:40 +0000 | [diff] [blame] | 16 | |
| 17 | #include <string> |
| 18 | #include <set> |
| 19 | #include <ostream> |
| 20 | |
Brian Gaeke | d0fde30 | 2003-11-11 22:41:34 +0000 | [diff] [blame] | 21 | namespace llvm { |
| 22 | |
John Criswell | f430434 | 2003-09-19 20:24:40 +0000 | [diff] [blame] | 23 | int |
Misha Brukman | 8f586ba | 2005-04-20 04:07:47 +0000 | [diff] [blame] | 24 | GenerateBytecode (Module *M, |
Chris Lattner | 3f14fb1 | 2004-12-02 21:26:10 +0000 | [diff] [blame] | 25 | int StripLevel, |
John Criswell | f430434 | 2003-09-19 20:24:40 +0000 | [diff] [blame] | 26 | bool Internalize, |
Misha Brukman | 8f586ba | 2005-04-20 04:07:47 +0000 | [diff] [blame] | 27 | std::ostream *Out); |
John Criswell | f430434 | 2003-09-19 20:24:40 +0000 | [diff] [blame] | 28 | |
| 29 | int |
Misha Brukman | 8f586ba | 2005-04-20 04:07:47 +0000 | [diff] [blame] | 30 | GenerateAssembly (const std::string &OutputFilename, |
| 31 | const std::string &InputFilename, |
| 32 | const sys::Path &llc, |
Misha Brukman | b0bafc5 | 2005-04-20 03:22:18 +0000 | [diff] [blame] | 33 | bool Verbose=false); |
Chris Lattner | 69e8d28 | 2004-04-06 16:43:13 +0000 | [diff] [blame] | 34 | |
Misha Brukman | 3da94ae | 2005-04-22 00:00:37 +0000 | [diff] [blame] | 35 | int |
| 36 | GenerateCFile (const std::string &OutputFile, |
Reid Spencer | 837149c | 2005-02-28 08:45:35 +0000 | [diff] [blame] | 37 | const std::string &InputFile, |
Misha Brukman | b0bafc5 | 2005-04-20 03:22:18 +0000 | [diff] [blame] | 38 | const sys::Path &llc, |
| 39 | bool Verbose=false); |
John Criswell | f430434 | 2003-09-19 20:24:40 +0000 | [diff] [blame] | 40 | int |
Misha Brukman | 8f586ba | 2005-04-20 04:07:47 +0000 | [diff] [blame] | 41 | GenerateNative (const std::string &OutputFilename, |
| 42 | const std::string &InputFilename, |
| 43 | const std::vector<std::string> &LibPaths, |
| 44 | const std::vector<std::string> &Libraries, |
| 45 | const sys::Path &gcc, |
Reid Spencer | 837149c | 2005-02-28 08:45:35 +0000 | [diff] [blame] | 46 | char ** const envp, |
| 47 | bool Shared, |
Chris Lattner | 1d924f6 | 2005-08-02 22:07:38 +0000 | [diff] [blame] | 48 | bool ExportAllAsDynamic, |
Reid Spencer | 156aa35 | 2005-12-22 01:50:56 +0000 | [diff] [blame] | 49 | const std::vector<std::string> &RPath, |
Misha Brukman | 8f586ba | 2005-04-20 04:07:47 +0000 | [diff] [blame] | 50 | const std::string &SOName, |
Misha Brukman | b0bafc5 | 2005-04-20 03:22:18 +0000 | [diff] [blame] | 51 | bool Verbose=false); |
John Criswell | f430434 | 2003-09-19 20:24:40 +0000 | [diff] [blame] | 52 | |
Brian Gaeke | d0fde30 | 2003-11-11 22:41:34 +0000 | [diff] [blame] | 53 | } // End llvm namespace |