Skip to content

SageBuilder::buildLabelStatement

Note that the scope of a label statement is special. It is SgFunctionDefinition, not the closest scope statement such as SgBasicBlock.

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility]]
SgLabelStatement*
buildLabelStatement(
    SgName const& name,
    SgStatement* stmt = NULL,
    SgScopeStatement* scope = NULL);

Return Value

This class represents the concept of a C or C++ label statement.

Parameters

Name

Description

name

This class represents strings within the IR nodes.

stmt

This class represents the notion of a statement.

scope

This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

Created with MrDocs