diff options
Diffstat (limited to 'tools/gccld/util.h')
-rw-r--r-- | tools/gccld/util.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/gccld/util.h b/tools/gccld/util.h new file mode 100644 index 0000000..58b91b7 --- /dev/null +++ b/tools/gccld/util.h @@ -0,0 +1,31 @@ +//===- util.h - Utility functions header file -----------------------------===// +// +// This file contains function prototypes for the functions in util.cpp. +// +//===----------------------------------------------------------------------===// + +#include "llvm/Module.h" + +#include <string> +#include <set> + +extern int +PrintAndReturn (const char *progname, + const std::string &Message, + const std::string &Extra = ""); + +extern bool +IsArchive (const std::string &filename); + +extern void +GetAllDefinedSymbols (Module *M, std::set<std::string> &DefinedSymbols); + +extern void +GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols); + +extern char ** +copy_env (char ** const envp); + +extern void +remove_env (const char * name, char ** const envp); + |