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