Mercurial > projects > ldc
view gen/linker.h @ 276:21f85bac0b1a trunk
[svn r297] Fixed: rewrote linker code to use LLVM's Program facilities instead of DMD's oldschool broken "native" approach.
author | lindquist |
---|---|
date | Fri, 20 Jun 2008 17:45:13 +0200 |
parents | a95056b3c996 |
children | 90a8c798b0db |
line wrap: on
line source
#ifndef LLVMDC_GEN_LINKER_H #define LLVMDC_GEN_LINKER_H /** * Links the modules given in MV in to dst. * @param dst Destination module. * @param MV Vector of modules to link in to destination. */ void linkModules(llvm::Module* dst, const std::vector<llvm::Module*>& MV); /** * Link an executable. * @return 0 on success. */ int linkExecutable(); #endif // LLVMDC_GEN_LINKER_H