1 //===- gccld.h - Utility functions header file ----------------------------===//
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"
21 PrintAndReturn (const char *progname,
22 const std::string &Message,
23 const std::string &Extra = "");
26 GetAllDefinedSymbols (Module *M, std::set<std::string> &DefinedSymbols);
29 GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols);
32 CopyEnv (char ** const envp);
35 RemoveEnv (const char * name, char ** const envp);
38 GenerateBytecode (Module * M,
44 GenerateAssembly (const std::string & OutputFilename,
45 const std::string & InputFilename,
46 const std::string & llc,
49 GenerateNative (const std::string & OutputFilename,
50 const std::string & InputFilename,
51 const std::vector<std::string> & Libraries,
52 const std::vector<std::string> & LibPaths,
53 const std::string & gcc,
57 LoadObject (const std::string & FN, std::string &OutErrorMessage);
60 LinkLibraries (const char * progname,
62 const std::vector<std::string> & Libraries,
63 const std::vector<std::string> & LibPaths,
67 LinkFiles (const char * progname,
69 const std::vector<std::string> & Files,