Mercurial > projects > ldc
comparison gen/todebug.cpp @ 1068:7db4bb9602ed
Automated merge with http://hg.dsource.org/projects/ldc
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 08 Mar 2009 16:22:06 +0100 |
parents | f0b6549055ab 186d44690036 |
children | 8038b106c458 |
comparison
equal
deleted
inserted
replaced
1064:f0b6549055ab | 1068:7db4bb9602ed |
---|---|
501 "LDC (http://www.dsource.org/projects/ldc)", | 501 "LDC (http://www.dsource.org/projects/ldc)", |
502 //FIXME: What do these two mean? | 502 //FIXME: What do these two mean? |
503 false, // isMain, | 503 false, // isMain, |
504 false // isOptimized | 504 false // isOptimized |
505 ); | 505 ); |
506 | |
507 // if the linkage stays internal, we can't llvm-link the generated modules together: | |
508 // llvm's DwarfWriter uses path and filename to determine the symbol name and we'd | |
509 // end up with duplicate symbols | |
510 m->ir.irModule->diCompileUnit.getGV()->setLinkage(llvm::GlobalValue::LinkOnceLinkage); | |
511 m->ir.irModule->diCompileUnit.getGV()->setName(std::string("llvm.dbg.compile_unit_") + srcpath + m->srcfile->name->toChars()); | |
506 | 512 |
507 return m->ir.irModule->diCompileUnit; | 513 return m->ir.irModule->diCompileUnit; |
508 } | 514 } |
509 | 515 |
510 ////////////////////////////////////////////////////////////////////////////////////////////////// | 516 ////////////////////////////////////////////////////////////////////////////////////////////////// |