mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
Use lazy parsing in LTO. Unfortunately this is only a 3% time saving for
'ar'. Have to figure out how to make libLTO even lazier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -87,6 +87,10 @@ LTOCodeGenerator::~LTOCodeGenerator()
|
||||
|
||||
bool LTOCodeGenerator::addModule(LTOModule* mod, std::string& errMsg)
|
||||
{
|
||||
|
||||
if(mod->getLLVVMModule()->MaterializeAllPermanently(&errMsg))
|
||||
return true;
|
||||
|
||||
bool ret = _linker.LinkInModule(mod->getLLVVMModule(), &errMsg);
|
||||
|
||||
const std::vector<const char*> &undefs = mod->getAsmUndefinedRefs();
|
||||
|
Reference in New Issue
Block a user