blob: 6ac1ca00a8518e2d1cfaed51db686298047bc773 [file] [log] [blame]
Brian Gaekeaee4de92003-11-05 22:13:10 +00001//===- gccld.h - Utility functions header file ------------------*- C++ -*-===//
John Criswell7c0e0222003-10-20 17:47:21 +00002//
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//===----------------------------------------------------------------------===//
John Criswellf4304342003-09-19 20:24:40 +00009//
10// This file contains function prototypes for the functions in util.cpp.
11//
12//===----------------------------------------------------------------------===//
13
14#include "llvm/Module.h"
Reid Spencer6903c862004-11-14 22:17:49 +000015#include "llvm/Linker.h"
John Criswellf4304342003-09-19 20:24:40 +000016
17#include <string>
18#include <set>
19#include <ostream>
20
Brian Gaeked0fde302003-11-11 22:41:34 +000021namespace llvm {
22
John Criswellf4304342003-09-19 20:24:40 +000023int
24GenerateBytecode (Module * M,
25 bool Strip,
26 bool Internalize,
27 std::ostream * Out);
28
29int
30GenerateAssembly (const std::string & OutputFilename,
31 const std::string & InputFilename,
32 const std::string & llc,
33 char ** const envp);
Chris Lattner69e8d282004-04-06 16:43:13 +000034
35int GenerateCFile(const std::string &OutputFile, const std::string &InputFile,
36 const std::string &llc, char ** const envp);
John Criswellf4304342003-09-19 20:24:40 +000037int
38GenerateNative (const std::string & OutputFilename,
39 const std::string & InputFilename,
40 const std::vector<std::string> & Libraries,
41 const std::vector<std::string> & LibPaths,
42 const std::string & gcc,
43 char ** const envp);
44
Brian Gaeked0fde302003-11-11 22:41:34 +000045} // End llvm namespace