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

Method PopulateCvInfoData

IDEHelper/Linker/BlContext.cpp:2334–2350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2332}
2333
2334void BlContext::PopulateCvInfoData(BlSegment* cvInfoSect)
2335{
2336 mCvInfoStream.Write((int32)'SDSR');
2337 mCvInfoStream.WriteT(mCodeView->mSignature);
2338 mCvInfoStream.Write(mCodeView->mAge);
2339
2340 String pdbName = mCodeView->mMsf.mFileName;
2341 //String pdbName = "C:\\proj\\TestCPP\\x64\\Debug\\TestCPP.pdb";
2342 mCvInfoStream.Write((void*)pdbName.c_str(), (int)pdbName.length() + 1);
2343
2344 BlChunk chunk;
2345 chunk.mOffset = 0;
2346 chunk.mAlignPad = 0;
2347 chunk.mData = (void*)&mCvInfoStream.mData[0];
2348 chunk.mSize = mCvInfoStream.GetSize();
2349 cvInfoSect->mChunks.push_back(chunk);
2350}
2351
2352BlSegment* BlContext::CreateCvInfoData()
2353{

Callers

nothing calls this directly

Calls 6

WriteMethod · 0.45
WriteTMethod · 0.45
c_strMethod · 0.45
lengthMethod · 0.45
GetSizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected