Reject "llvm." as a function name
[oota-llvm.git] / tools / gccld / util.h
1 //===- util.h - Utility functions header file -----------------------------===//
2 //
3 // This file contains function prototypes for the functions in util.cpp.
4 //
5 //===----------------------------------------------------------------------===//
6
7 #include "llvm/Module.h"
8
9 #include <string>
10 #include <set>
11
12 extern int
13 PrintAndReturn (const char *progname,
14                 const std::string &Message,
15                 const std::string &Extra = "");
16
17 extern bool
18 IsArchive (const std::string &filename);
19
20 extern void
21 GetAllDefinedSymbols (Module *M, std::set<std::string> &DefinedSymbols);
22
23 extern void
24 GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols);
25
26 extern char **
27 copy_env (char ** const envp);
28
29 extern void
30 remove_env (const char * name, char ** const envp);
31