LLVM API Documentation

llvm::DISubprogram Class Reference

DISubprogram - This is a wrapper for a subprogram (e.g. a function). More...

#include <DebugInfo.h>

Inheritance diagram for llvm::DISubprogram:
[legend]
Collaboration diagram for llvm::DISubprogram:
[legend]

List of all members.

Public Member Functions

 DISubprogram (GlobalVariable *GV=0)
DICompositeType getType () const
const std::string & getReturnTypeName (std::string &F) const
bool Verify () const
 Verify - Verify that a subprogram descriptor is well formed.
void dump () const
 dump - print subprogram.
bool describes (const Function *F)


Detailed Description

DISubprogram - This is a wrapper for a subprogram (e.g. a function).

Definition at line 336 of file DebugInfo.h.


Constructor & Destructor Documentation

llvm::DISubprogram::DISubprogram ( GlobalVariable *  GV = 0  )  [inline, explicit]

Definition at line 338 of file DebugInfo.h.


Member Function Documentation

DICompositeType llvm::DISubprogram::getType (  )  const [inline]

Reimplemented from llvm::DIGlobal.

Definition at line 341 of file DebugInfo.h.

Referenced by Verify().

const std::string& llvm::DISubprogram::getReturnTypeName ( std::string &  F  )  const [inline]

getReturnTypeName - Subprogram return types are encoded either as DIType or as DICompositeType.

Definition at line 345 of file DebugInfo.h.

References A, llvm::DIArray::getElement(), llvm::DIDescriptor::getGV(), llvm::DIType::getName(), llvm::DICompositeType::getTypeArray(), llvm::DIDescriptor::isNull(), and T.

bool DISubprogram::Verify (  )  const

Verify - Verify that a subprogram descriptor is well formed.

Definition at line 260 of file DebugInfo.cpp.

References llvm::DIGlobal::getCompileUnit(), llvm::DIGlobal::getContext(), getType(), llvm::DIDescriptor::isNull(), Ty, llvm::DICompositeType::Verify(), and llvm::DICompileUnit::Verify().

void DISubprogram::dump (  )  const

dump - print subprogram.

dump - Print subprogram.

Reimplemented from llvm::DIGlobal.

Definition at line 444 of file DebugInfo.cpp.

References llvm::dump().

bool DISubprogram::describes ( const Function *  F  ) 

describes - Return true if this subprogram provides debugging information for the function F.

describes - Return true if this subprogram provides debugging information for the function F.

Definition at line 327 of file DebugInfo.cpp.

References llvm::DIGlobal::getLinkageName(), llvm::DIGlobal::getName(), llvm::Value::getName(), and Name.

Referenced by findFnRegionEndMarker(), llvm::isInlinedFnEnd(), and llvm::isInlinedFnStart().


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