LLVM API Documentation

llvm::SourceFunctionInfo Class Reference

#include <ProgramInfo.h>

Collaboration diagram for llvm::SourceFunctionInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SourceFunctionInfo (ProgramInfo &PI, const GlobalVariable *Desc)
virtual ~SourceFunctionInfo ()
virtual std::string getSymbolicName () const
const GlobalVariablegetDescriptor () const
const SourceFileInfogetSourceFile () const
void getSourceLocation (unsigned &LineNo, unsigned &ColNo) const

Detailed Description

SourceFunctionInfo - An instance of this class is used to represent each source function in the program.

Definition at line 87 of file ProgramInfo.h.


Constructor & Destructor Documentation

SourceFunctionInfo::SourceFunctionInfo ( ProgramInfo PI,
const GlobalVariable Desc 
)

Definition at line 148 of file ProgramInfo.cpp.

References llvm::GlobalVariable::getInitializer(), llvm::ProgramInfo::getSourceFile(), GV, llvm::GlobalVariable::hasInitializer(), and PI.

virtual llvm::SourceFunctionInfo::~SourceFunctionInfo (  )  [inline, virtual]

Definition at line 107 of file ProgramInfo.h.


Member Function Documentation

virtual std::string llvm::SourceFunctionInfo::getSymbolicName (  )  const [inline, virtual]

getSymbolicName - Return a human-readable symbolic name to identify the function (for example, in stack traces).

Definition at line 111 of file ProgramInfo.h.

const GlobalVariable* llvm::SourceFunctionInfo::getDescriptor (  )  const [inline]

getDescriptor - This returns the descriptor for the function.

Definition at line 115 of file ProgramInfo.h.

Referenced by getSourceLocation().

const SourceFileInfo& llvm::SourceFunctionInfo::getSourceFile (  )  const [inline]

getSourceFile - This returns the source file that defines the function.

Definition at line 119 of file ProgramInfo.h.

Referenced by getSourceLocation().

void SourceFunctionInfo::getSourceLocation ( unsigned &  LineNo,
unsigned &  ColNo 
) const

getSourceLocation - This method returns the location of the first stopping point in the function. If the body of the function cannot be found, this returns zeros for both values.

Definition at line 167 of file ProgramInfo.cpp.

References llvm::Intrinsic::dbg_func_start, E, F, getDescriptor(), getNextStopPoint(), getSourceFile(), llvm::Value::use_begin(), and llvm::Value::use_end().


The documentation for this class was generated from the following files: