MCPcopy Create free account
hub / github.com/beefytech/Beef / FinishModule

Method FinishModule

IDEHelper/Linker/BlCvParser.cpp:504–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504void BlCvParser::FinishModule(PESectionHeader* sectHeaderArr, const BfSizedVectorRef<BlObjectDataSectInfo>& sectInfos, PE_SymInfo* objSyms, const BfSizedVectorRef<BlObjectDataSymInfo>& syms)
505{
506 if (mCurModule == NULL)
507 return;
508
509 mCurModule->mObjSyms = objSyms;
510 if (!syms.empty())
511 mCurModule->mSymInfo.insert(mCurModule->mSymInfo.begin(), syms.begin(), syms.end());
512 for (auto sectInfo : sectInfos)
513 mCurModule->mSectInfos.push_back(sectInfo);
514 mSyms = &syms;
515
516 //
517 {
518 BL_AUTOPERF("BlCvParser::FinishModule ParseTypeData");
519 for (auto sect : mTypeSects)
520 {
521 ParseTypeData((uint8*)mCurModule->mObjectData->mData + sect->mPointerToRawData, sect->mSizeOfRawData);
522 }
523 }
524
525 //
526 {
527 BL_AUTOPERF("BlCvParser::FinishModule ParseSymbolData");
528 for (auto sect : mSymSects)
529 {
530 ParseSymbolData(
531 (uint8*)mCurModule->mObjectData->mData + sect->mPointerToRawData, sect->mSizeOfRawData,
532 (uint8*)mCurModule->mObjectData->mData + sect->mPointerToRelocations, sect->mNumberOfRelocations);
533 }
534 }
535
536 mCodeView->mModuleWorkThread.Add(mCurModule);
537}

Callers 1

LoadFilesMethod · 0.80

Calls 5

emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected