llvm::CompleteNodeLabelString

Build a detailed DOT label for a basic block, wrapping and stripping comments.

Synopsis

Declared in <llvm/Analysis/CFGPrinter.h>

template<typename BasicBlockT>
std::string
CompleteNodeLabelString(
    BasicBlockT const* Node,
    function_ref<void(raw_string_ostream&, BasicBlockT const&)> HandleBasicBlock,
    function_ref<void(std::string&, unsigned int&, unsigned int)> HandleComment);

Return Value

Formatted multi-line DOT label string for Node.

Parameters

NameDescription
NodeBasic block to label.
HandleBasicBlockCallback that prints the block body into a stream.
HandleCommentCallback that erases or rewrites a comment span.