LLVM API Documentation

llvm::SourceFileInfo Class Reference

#include <MachineDebugInfo.h>

Collaboration diagram for llvm::SourceFileInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SourceFileInfo (unsigned D, const std::string &N)
unsigned getDirectoryID () const
const std::string & getName () const
bool operator== (const SourceFileInfo &SI) const
bool operator< (const SourceFileInfo &SI) const
 SourceFileInfo (const GlobalVariable *Desc, const SourceLanguage &Lang)
 ~SourceFileInfo ()
const std::string & getBaseName () const
const std::string & getDirectory () const
unsigned getDebugVersion () const
const GlobalVariablegetDescriptor () const
SourceFilegetSourceText () const
const SourceLanguagegetLanguage () const

Detailed Description

SourceFileInfo - This class is used to track source information.

Definition at line 862 of file MachineDebugInfo.h.


Constructor & Destructor Documentation

llvm::SourceFileInfo::SourceFileInfo ( unsigned  D,
const std::string &  N 
) [inline]

Definition at line 868 of file MachineDebugInfo.h.

SourceFileInfo::SourceFileInfo ( const GlobalVariable Desc,
const SourceLanguage Lang 
)

Definition at line 108 of file ProgramInfo.cpp.

References llvm::GlobalVariable::getInitializer(), and llvm::GlobalVariable::hasInitializer().

SourceFileInfo::~SourceFileInfo (  ) 

Definition at line 125 of file ProgramInfo.cpp.


Member Function Documentation

unsigned llvm::SourceFileInfo::getDirectoryID (  )  const [inline]

Definition at line 871 of file MachineDebugInfo.h.

Referenced by operator<(), and operator==().

const std::string& llvm::SourceFileInfo::getName (  )  const [inline]

Definition at line 872 of file MachineDebugInfo.h.

Referenced by operator<(), and operator==().

bool llvm::SourceFileInfo::operator== ( const SourceFileInfo SI  )  const [inline]

operator== - Used by UniqueVector to locate entry.

Definition at line 876 of file MachineDebugInfo.h.

References getDirectoryID(), and getName().

bool llvm::SourceFileInfo::operator< ( const SourceFileInfo SI  )  const [inline]

operator< - Used by UniqueVector to locate entry.

Definition at line 882 of file MachineDebugInfo.h.

References getDirectoryID(), and getName().

const std::string& llvm::SourceFileInfo::getBaseName (  )  const [inline]

Definition at line 74 of file ProgramInfo.h.

Referenced by llvm::ProgramInfo::getSourceFile().

const std::string& llvm::SourceFileInfo::getDirectory (  )  const [inline]

Definition at line 75 of file ProgramInfo.h.

unsigned llvm::SourceFileInfo::getDebugVersion (  )  const [inline]

Definition at line 76 of file ProgramInfo.h.

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

Definition at line 77 of file ProgramInfo.h.

SourceFile & SourceFileInfo::getSourceText (  )  const

Definition at line 129 of file ProgramInfo.cpp.

References llvm::sys::Path::appendComponent(), llvm::sys::Path::canRead(), llvm::sys::Path::set(), and llvm::sys::Path::toString().

const SourceLanguage& llvm::SourceFileInfo::getLanguage (  )  const [inline]

Definition at line 80 of file ProgramInfo.h.

Referenced by llvm::ProgramInfo::getFunction().


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