GCC Middle and Back End API Reference
optinfo_item Class Reference

#include <optinfo.h>

Public Member Functions

 optinfo_item (enum optinfo_item_kind kind, location_t location, char *text)
 
 ~optinfo_item ()
 
enum optinfo_item_kind get_kind () const
 
location_t get_location () const
 
const char * get_text () const
 

Private Attributes

enum optinfo_item_kind m_kind
 
location_t m_location
 
char * m_text
 

Detailed Description

An item within an optinfo.   

Constructor & Destructor Documentation

◆ optinfo_item()

optinfo_item::optinfo_item ( enum optinfo_item_kind kind,
location_t location,
char * text )
optinfo_item's ctor.  Takes ownership of TEXT.   

◆ ~optinfo_item()

optinfo_item::~optinfo_item ( )
optinfo_item's dtor.   

References free(), and m_text.

Member Function Documentation

◆ get_kind()

enum optinfo_item_kind optinfo_item::get_kind ( ) const
inline

◆ get_location()

location_t optinfo_item::get_location ( ) const
inline

◆ get_text()

const char * optinfo_item::get_text ( ) const
inline

Field Documentation

◆ m_kind

enum optinfo_item_kind optinfo_item::m_kind
private

Referenced by get_kind().

◆ m_location

location_t optinfo_item::m_location
private

Referenced by get_location().

◆ m_text

char* optinfo_item::m_text
private

Referenced by get_text(), and ~optinfo_item().


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