1 //===- util.h - Utility functions header file -----------------------------===//
3 // This file contains function prototypes for the functions in util.cpp.
5 //===----------------------------------------------------------------------===//
7 #include "llvm/Module.h"
14 PrintAndReturn (const char *progname,
15 const std::string &Message,
16 const std::string &Extra = "");
19 GetAllDefinedSymbols (Module *M, std::set<std::string> &DefinedSymbols);
22 GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols);
25 CopyEnv (char ** const envp);
28 RemoveEnv (const char * name, char ** const envp);
31 GenerateBytecode (Module * M,
37 GenerateAssembly (const std::string & OutputFilename,
38 const std::string & InputFilename,
39 const std::string & llc,
42 GenerateNative (const std::string & OutputFilename,
43 const std::string & InputFilename,
44 const std::vector<std::string> & Libraries,
45 const std::vector<std::string> & LibPaths,
46 const std::string & gcc,
50 LoadObject (const std::string & FN, std::string &OutErrorMessage);
53 LinkLibraries (const char * progname,
55 const std::vector<std::string> & Libraries,
56 const std::vector<std::string> & LibPaths,
60 LinkFiles (const char * progname,
62 const std::vector<std::string> & Files,