LLVM  6.0.0svn
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
llvm::MCCVFunctionInfo Struct Reference

Information describing a function or inlined call site introduced by .cv_func_id or .cv_inline_site_id. More...

#include "llvm/MC/MCCodeView.h"

Collaboration diagram for llvm::MCCVFunctionInfo:
Collaboration graph
[legend]

Classes

struct  LineInfo
 

Public Types

enum  : unsigned { FunctionSentinel = ~0U }
 

Public Member Functions

bool isUnallocatedFunctionInfo () const
 Returns true if this is function info has not yet been used in a .cv_func_id or .cv_inline_site_id directive. More...
 
bool isInlinedCallSite () const
 Returns true if this represents an inlined call site, meaning ParentFuncIdPlusOne is neither zero nor ~0U. More...
 
unsigned getParentFuncId () const
 

Public Attributes

unsigned ParentFuncIdPlusOne = 0
 If this represents an inlined call site, then ParentFuncIdPlusOne will be the parent function id plus one. More...
 
LineInfo InlinedAt
 
MCSectionSection = nullptr
 The section of the first .cv_loc directive used for this function, or null if none has been seen yet. More...
 
DenseMap< unsigned, LineInfoInlinedAtMap
 Map from inlined call site id to the inlined at location to use for that call site. More...
 

Detailed Description

Information describing a function or inlined call site introduced by .cv_func_id or .cv_inline_site_id.

Accumulates information from .cv_loc directives used with this function's id or the id of an inlined call site within this function or inlined call site.

Definition at line 112 of file MCCodeView.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : unsigned
Enumerator
FunctionSentinel 

Definition at line 120 of file MCCodeView.h.

Member Function Documentation

◆ getParentFuncId()

unsigned llvm::MCCVFunctionInfo::getParentFuncId ( ) const
inline

Definition at line 151 of file MCCodeView.h.

References assert().

Referenced by llvm::CodeViewContext::recordInlinedCallSiteId().

◆ isInlinedCallSite()

bool llvm::MCCVFunctionInfo::isInlinedCallSite ( ) const
inline

Returns true if this represents an inlined call site, meaning ParentFuncIdPlusOne is neither zero nor ~0U.

Definition at line 146 of file MCCodeView.h.

Referenced by llvm::CodeViewContext::recordInlinedCallSiteId().

◆ isUnallocatedFunctionInfo()

bool llvm::MCCVFunctionInfo::isUnallocatedFunctionInfo ( ) const
inline

Returns true if this is function info has not yet been used in a .cv_func_id or .cv_inline_site_id directive.

Definition at line 142 of file MCCodeView.h.

Member Data Documentation

◆ InlinedAt

LineInfo llvm::MCCVFunctionInfo::InlinedAt

Definition at line 128 of file MCCodeView.h.

Referenced by llvm::CodeViewContext::recordInlinedCallSiteId().

◆ InlinedAtMap

DenseMap<unsigned, LineInfo> llvm::MCCVFunctionInfo::InlinedAtMap

Map from inlined call site id to the inlined at location to use for that call site.

Call chains are collapsed, so for the call chain 'f -> g -> h', the InlinedAtMap of 'f' will contain entries for 'g' and 'h' that both list the line info for the 'g' call site.

Definition at line 138 of file MCCodeView.h.

Referenced by llvm::CodeViewContext::encodeInlineLineTable(), and llvm::CodeViewContext::recordInlinedCallSiteId().

◆ ParentFuncIdPlusOne

unsigned llvm::MCCVFunctionInfo::ParentFuncIdPlusOne = 0

If this represents an inlined call site, then ParentFuncIdPlusOne will be the parent function id plus one.

If this represents a normal function, then there is no parent, and ParentFuncIdPlusOne will be FunctionSentinel. If this struct is an unallocated slot in the function info vector, then ParentFuncIdPlusOne will be zero.

Definition at line 118 of file MCCodeView.h.

Referenced by llvm::CodeViewContext::recordInlinedCallSiteId().

◆ Section

MCSection* llvm::MCCVFunctionInfo::Section = nullptr

The section of the first .cv_loc directive used for this function, or null if none has been seen yet.

Definition at line 132 of file MCCodeView.h.

Referenced by llvm::MCStreamer::EmitCVLocDirective().


The documentation for this struct was generated from the following file: