Skip to content

Commit f81b23a

Browse files
committed
Extend BasicBlock sections to allow specifying clusters of basic blocks
in the same section. This allows specifying BasicBlock clusters like the following example: !foo !!0 1 2 !!4 This places basic blocks 0, 1, and 2 in one section in this order, and places basic block #4 in a single section of its own.
1 parent 71c8547 commit f81b23a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/include/llvm/CodeGen/AsmPrinter.h

+4
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ class AsmPrinter : public MachineFunctionPass {
151151
// function. This is used to calculate the size of the BB section.
152152
MCSymbol *CurrentSectionBeginSym = nullptr;
153153

154+
// The symbol used to represent the start of the current BB section of the
155+
// function. This is used to calculate the size of the BB section.
156+
MCSymbol *CurrentSectionBeginSym = nullptr;
157+
154158
// The garbage collection metadata printer table.
155159
void *GCMetadataPrinters = nullptr; // Really a DenseMap.
156160

0 commit comments

Comments
 (0)