diff --git a/llvm/tools/llvm-ld/llvm-ld.h b/llvm/tools/llvm-ld/llvm-ld.h index 85bf933a029e..0b1f920937af 100644 --- a/llvm/tools/llvm-ld/llvm-ld.h +++ b/llvm/tools/llvm-ld/llvm-ld.h @@ -12,19 +12,11 @@ //===----------------------------------------------------------------------===// #include "llvm/Module.h" - -#include -#include +#include "llvm/Linker.h" #include namespace llvm { -void -GetAllDefinedSymbols (Module *M, std::set &DefinedSymbols); - -void -GetAllUndefinedSymbols(Module *M, std::set &UndefinedSymbols); - int GenerateBytecode (Module * M, bool Strip, @@ -47,21 +39,4 @@ GenerateNative (const std::string & OutputFilename, const std::string & gcc, char ** const envp); -std::auto_ptr -LoadObject (const std::string & FN, std::string &OutErrorMessage); - -std::string FindLib(const std::string &Filename, - const std::vector &Paths, - bool SharedObjectOnly = false); - -void LinkLibraries (const char * progname, Module* HeadModule, - const std::vector & Libraries, - const std::vector & LibPaths, - bool Verbose, bool Native); -bool -LinkFiles (const char * progname, - Module * HeadModule, - const std::vector & Files, - bool Verbose); - } // End llvm namespace