Builds the directory and metadata layout of an MSF file.

Synopsis

Declared in <llvm/DebugInfo/MSF/MSFBuilder.h>

class MSFBuilder;

Member Functions

Name

Description

addStream

addStream overloads

commit

Write the MSF layout to the underlying file.

generateLayout

Finalize the layout and build the headers and structures that describe the MSF layout and can be written directly to the MSF file.

getAllocator

Return the bump‐pointer allocator used by this builder.

getNumFreeBlocks

Get the total number of blocks that exist in the MSF file but are not allocated to any valid data.

getNumStreams

Get the total number of streams in the MSF layout. This should return 1 for every call to addStream.

getNumUsedBlocks

Get the total number of blocks that will be allocated to actual data in this MSF file.

getStreamBlocks

Get the list of blocks allocated to a particular stream.

getStreamSize

Get the size of a stream by index.

getTotalBlockCount

Get the total number of blocks in the MSF file. In practice this is equal to getNumUsedBlocks() + getNumFreeBlocks().

isBlockFree

Check whether a particular block is allocated or free.

setBlockMapAddr

Request the block map to be at a specific block address. This is useful when editing a MSF and you want the layout to be as stable as possible.

setDirectoryBlocksHint

Hint which blocks should hold the MSF directory.

setFreePageMap

Set the free page map block index written into the SuperBlock.

setStreamSize

Update the size of an existing stream.

setUnknown1

Set the SuperBlock Unknown1 field.

Static Member Functions

Name

Description

create

Create a new MSFBuilder.

Created with MrDocs