2003-11-05 22:13:10 +00:00
|
|
|
//===- gccld.h - Utility functions header file ------------------*- C++ -*-===//
|
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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
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
|
|
|
|
GenerateBytecode (Module * M,
|
|
|
|
bool Strip,
|
|
|
|
bool Internalize,
|
|
|
|
std::ostream * Out);
|
|
|
|
|
|
|
|
int
|
|
|
|
GenerateAssembly (const std::string & OutputFilename,
|
|
|
|
const std::string & InputFilename,
|
|
|
|
const std::string & llc,
|
|
|
|
char ** const envp);
|
2004-04-06 16:43:13 +00:00
|
|
|
|
|
|
|
int GenerateCFile(const std::string &OutputFile, const std::string &InputFile,
|
|
|
|
const std::string &llc, char ** const envp);
|
2003-09-19 20:24:40 +00:00
|
|
|
int
|
|
|
|
GenerateNative (const std::string & OutputFilename,
|
|
|
|
const std::string & InputFilename,
|
|
|
|
const std::vector<std::string> & Libraries,
|
|
|
|
const std::vector<std::string> & LibPaths,
|
|
|
|
const std::string & gcc,
|
|
|
|
char ** const envp);
|
|
|
|
|
2003-11-11 22:41:34 +00:00
|
|
|
} // End llvm namespace
|