1 //===- llvm-ld.h - Utility functions header file ----------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
10 // This file contains function prototypes for the functions in util.cpp.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Module.h"
23 GetAllDefinedSymbols (Module *M, std::set<std::string> &DefinedSymbols);
26 GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols);
29 GenerateBytecode (Module * M,
35 GenerateAssembly (const std::string & OutputFilename,
36 const std::string & InputFilename,
37 const std::string & llc,
40 int GenerateCFile(const std::string &OutputFile, const std::string &InputFile,
41 const std::string &llc, char ** const envp);
43 GenerateNative (const std::string & OutputFilename,
44 const std::string & InputFilename,
45 const std::vector<std::string> & Libraries,
46 const std::vector<std::string> & LibPaths,
47 const std::string & gcc,
51 LoadObject (const std::string & FN, std::string &OutErrorMessage);
53 std::string FindLib(const std::string &Filename,
54 const std::vector<std::string> &Paths,
55 bool SharedObjectOnly = false);
57 void LinkLibraries (const char * progname, Module* HeadModule,
58 const std::vector<std::string> & Libraries,
59 const std::vector<std::string> & LibPaths,
60 bool Verbose, bool Native);
62 LinkFiles (const char * progname,
64 const std::vector<std::string> & Files,
67 } // End llvm namespace