2003-11-05 23:13:10 +01:00
|
|
|
//===- gccld.h - Utility functions header file ------------------*- C++ -*-===//
|
2005-04-22 02:00:37 +02:00
|
|
|
//
|
2003-10-20 19:47:21 +02: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 02:00:37 +02:00
|
|
|
//
|
2003-10-20 19:47:21 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
2003-09-19 22:24:40 +02:00
|
|
|
//
|
|
|
|
// This file contains function prototypes for the functions in util.cpp.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/Module.h"
|
2004-11-14 23:17:49 +01:00
|
|
|
#include "llvm/Linker.h"
|
2003-09-19 22:24:40 +02:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <set>
|
|
|
|
#include <ostream>
|
|
|
|
|
2003-11-11 23:41:34 +01:00
|
|
|
namespace llvm {
|
|
|
|
|
2003-09-19 22:24:40 +02:00
|
|
|
int
|
2005-04-20 06:07:47 +02:00
|
|
|
GenerateBytecode (Module *M,
|
2004-12-02 22:26:10 +01:00
|
|
|
int StripLevel,
|
2003-09-19 22:24:40 +02:00
|
|
|
bool Internalize,
|
2005-04-20 06:07:47 +02:00
|
|
|
std::ostream *Out);
|
2003-09-19 22:24:40 +02:00
|
|
|
|
|
|
|
int
|
2005-04-20 06:07:47 +02:00
|
|
|
GenerateAssembly (const std::string &OutputFilename,
|
|
|
|
const std::string &InputFilename,
|
|
|
|
const sys::Path &llc,
|
2005-04-20 05:22:18 +02:00
|
|
|
bool Verbose=false);
|
2004-04-06 18:43:13 +02:00
|
|
|
|
2005-04-22 02:00:37 +02:00
|
|
|
int
|
|
|
|
GenerateCFile (const std::string &OutputFile,
|
2005-02-28 09:45:35 +01:00
|
|
|
const std::string &InputFile,
|
2005-04-20 05:22:18 +02:00
|
|
|
const sys::Path &llc,
|
|
|
|
bool Verbose=false);
|
2003-09-19 22:24:40 +02:00
|
|
|
int
|
2005-04-20 06:07:47 +02: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 09:45:35 +01:00
|
|
|
char ** const envp,
|
|
|
|
bool Shared,
|
2005-08-03 00:07:38 +02:00
|
|
|
bool ExportAllAsDynamic,
|
2005-04-20 06:07:47 +02:00
|
|
|
const std::string &RPath,
|
|
|
|
const std::string &SOName,
|
2005-04-20 05:22:18 +02:00
|
|
|
bool Verbose=false);
|
2003-09-19 22:24:40 +02:00
|
|
|
|
2003-11-11 23:41:34 +01:00
|
|
|
} // End llvm namespace
|