Mercurial > projects > ldc
comparison gen/linker.cpp @ 663:6aaa3d3c1183
First part of rename to LDC.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 06 Oct 2008 22:46:55 +0200 |
parents | 29dc68c949b0 |
children | 075c1272a01d |
comparison
equal
deleted
inserted
replaced
662:88e23f8c2354 | 663:6aaa3d3c1183 |
---|---|
19 void linkModules(llvm::Module* dst, const Module_vector& MV) | 19 void linkModules(llvm::Module* dst, const Module_vector& MV) |
20 { | 20 { |
21 if (MV.empty()) | 21 if (MV.empty()) |
22 return; | 22 return; |
23 | 23 |
24 llvm::Linker linker("llvmdc", dst); | 24 llvm::Linker linker("ldc", dst); |
25 | 25 |
26 std::string err; | 26 std::string err; |
27 for (Module_vector::const_iterator i=MV.begin(); i!=MV.end(); ++i) | 27 for (Module_vector::const_iterator i=MV.begin(); i!=MV.end(); ++i) |
28 { | 28 { |
29 if (!linker.LinkInModule(*i, &err)) | 29 if (!linker.LinkInModule(*i, &err)) |