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.
|
Definition at line 33 of file SourceLanguage.h. |
|
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(). |
|
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. Referenced by llvm::ProgramInfo::getFunction(). |
|
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(). |
|
get*Instance() - These methods return specific instances of languages. Definition at line 25 of file SourceLanguage-CFamily.cpp. References get(). Referenced by get(). |
|
Definition at line 24 of file SourceLanguage-CPlusPlus.cpp. References get(). Referenced by get(). |
|
getSourceLanguageName - This method is used to implement the 'show language' command in the debugger. |
|
Definition at line 95 of file SourceLanguage-Unknown.cpp. References TheUnknownSourceLanguageInstance. Referenced by get(). |
|
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. |
|
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. |