2003-11-05 22:13:10 +00:00
|
|
|
//===- gccld.h - Utility functions header file ------------------*- C++ -*-===//
|
2005-04-22 00:00:37 +00:00
|
|
|
//
|
2003-10-20 17:47:21 +00:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
2005-04-22 00:00:37 +00:00
|
|
|
//
|
2003-10-20 17:47:21 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2003-09-19 20:24:40 +00:00
|
|
|
//
|
|
|
|
// This file contains function prototypes for the functions in util.cpp.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/Module.h"
|
2004-11-14 22:17:49 +00:00
|
|
|
#include "llvm/Linker.h"
|
2003-09-19 20:24:40 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <set>
|
|
|
|
#include <ostream>
|
|
|
|
|
2003-11-11 22:41:34 +00:00
|
|
|
namespace llvm {
|
|
|
|
|
2003-09-19 20:24:40 +00:00
|
|
|
int
|
2005-04-20 04:07:47 +00:00
|
|
|
GenerateBytecode (Module *M,
|
2004-12-02 21:26:10 +00:00
|
|
|
int StripLevel,
|
2003-09-19 20:24:40 +00:00
|
|
|
bool Internalize,
|
2005-04-20 04:07:47 +00:00
|
|
|
std::ostream *Out);
|
2003-09-19 20:24:40 +00:00
|
|
|
|
|
|
|
int
|
2005-04-20 04:07:47 +00:00
|
|
|
GenerateAssembly (const std::string &OutputFilename,
|
|
|
|
const std::string &InputFilename,
|
|
|
|
const sys::Path &llc,
|
2005-04-20 03:22:18 +00:00
|
|
|
bool Verbose=false);
|
2004-04-06 16:43:13 +00:00
|
|
|
|
2005-04-22 00:00:37 +00:00
|
|
|
int
|
|
|
|
GenerateCFile (const std::string &OutputFile,
|
2005-02-28 08:45:35 +00:00
|
|
|
const std::string &InputFile,
|
2005-04-20 03:22:18 +00:00
|
|
|
const sys::Path &llc,
|
|
|
|
bool Verbose=false);
|
2003-09-19 20:24:40 +00:00
|
|
|
int
|
2005-04-20 04:07:47 +00:00
|
|
|
GenerateNative (const std::string &OutputFilename,
|
|
|
|
const std::string &InputFilename,
|
|
|
|
const std::vector<std::string> &LibPaths,
|
|
|
|
const std::vector<std::string> &Libraries,
|
|
|
|
const sys::Path &gcc,
|
2005-02-28 08:45:35 +00:00
|
|
|
char ** const envp,
|
|
|
|
bool Shared,
|
2005-08-02 22:07:38 +00:00
|
|
|
bool ExportAllAsDynamic,
|
2005-12-22 01:50:56 +00:00
|
|
|
const std::vector<std::string> &RPath,
|
2005-04-20 04:07:47 +00:00
|
|
|
const std::string &SOName,
|
2005-04-20 03:22:18 +00:00
|
|
|
bool Verbose=false);
|
2003-09-19 20:24:40 +00:00
|
|
|
|
2003-11-11 22:41:34 +00:00
|
|
|
} // End llvm namespace
|