LLVM API Documentation
#include <SourceLanguage.h>
Public Member Functions | |
virtual | ~SourceLanguage () |
virtual const char * | getSourceLanguageName () const=0 |
virtual bool | printInfo (const std::string &What) const |
virtual SourceFunctionInfo * | lookupFunction (const std::string &FunctionName, ProgramInfo &PI, RuntimeInfo *RI=0) const |
virtual SourceFileInfo * | createSourceFileInfo (const GlobalVariable *Desc, ProgramInfo &PI) const |
virtual SourceFunctionInfo * | createSourceFunctionInfo (const GlobalVariable *Desc, ProgramInfo &PI) const |
Static Public Member Functions | |
static const SourceLanguage & | get (unsigned ID) |
static const SourceLanguage & | getCFamilyInstance () |
static const SourceLanguage & | getCPlusPlusInstance () |
static const SourceLanguage & | getUnknownLanguageInstance () |
Definition at line 32 of file SourceLanguage.h.
virtual llvm::SourceLanguage::~SourceLanguage | ( | ) | [inline, virtual] |
Definition at line 33 of file SourceLanguage.h.
virtual const char* llvm::SourceLanguage::getSourceLanguageName | ( | ) | const [pure virtual] |
getSourceLanguageName - This method is used to implement the 'show language' command in the debugger.
virtual bool llvm::SourceLanguage::printInfo | ( | const std::string & | What | ) | const [inline, virtual] |
printInfo - Implementing this method allows the debugger to use language-specific 'info' extensions, e.g., 'info selectors' for objc. This method should return true if the specified string is recognized.
Definition at line 47 of file SourceLanguage.h.
virtual SourceFunctionInfo* llvm::SourceLanguage::lookupFunction | ( | const std::string & | FunctionName, | |
ProgramInfo & | PI, | |||
RuntimeInfo * | RI = 0 | |||
) | const [inline, virtual] |
lookupFunction - Given a textual function name, return the SourceFunctionInfo descriptor for that function, or null if it cannot be found. If the program is currently running, the RuntimeInfo object provides information about the current evaluation context, otherwise it will be null.
Definition at line 57 of file SourceLanguage.h.
SourceFileInfo * SourceLanguage::createSourceFileInfo | ( | const GlobalVariable * | Desc, | |
ProgramInfo & | PI | |||
) | const [virtual] |
createSourceFileInfo - This method can be implemented by the front-end if it needs to keep track of information beyond what the debugger requires.
Definition at line 45 of file SourceLanguage.cpp.
Referenced by llvm::ProgramInfo::getSourceFile().
SourceFunctionInfo * SourceLanguage::createSourceFunctionInfo | ( | const GlobalVariable * | Desc, | |
ProgramInfo & | PI | |||
) | const [virtual] |
createSourceFunctionInfo - This method can be implemented by the derived SourceLanguage if it needs to keep track of more information than the SourceFunctionInfo has.
Definition at line 51 of file SourceLanguage.cpp.
References PI.
Referenced by llvm::ProgramInfo::getFunction().
const SourceLanguage & SourceLanguage::get | ( | unsigned | ID | ) | [static] |
get - This method returns a source-language instance for the specified Dwarf 3 language identifier. If the language is unknown, an object is returned that can support some minimal operations, but is not terribly bright.
Definition at line 18 of file SourceLanguage.cpp.
References getCFamilyInstance(), getCPlusPlusInstance(), and getUnknownLanguageInstance().
Referenced by getCFamilyInstance(), getCPlusPlusInstance(), and llvm::ProgramInfo::getSourceFile().
const SourceLanguage & SourceLanguage::getCFamilyInstance | ( | ) | [static] |
get*Instance() - These methods return specific instances of languages.
Definition at line 25 of file SourceLanguage-CFamily.cpp.
References get().
Referenced by get().
const SourceLanguage & SourceLanguage::getCPlusPlusInstance | ( | ) | [static] |
const SourceLanguage & SourceLanguage::getUnknownLanguageInstance | ( | ) | [static] |
Definition at line 95 of file SourceLanguage-Unknown.cpp.
References TheUnknownSourceLanguageInstance.
Referenced by get().