LLVM API Documentation
#include <MCContext.h>
Public Member Functions | |
| MCContext () | |
| ~MCContext () | |
| MCSymbol * | CreateSymbol (const StringRef &Name) |
| MCSymbol * | GetOrCreateSymbol (const StringRef &Name) |
| MCSymbol * | CreateTemporarySymbol (const StringRef &Name="") |
| MCSymbol * | LookupSymbol (const StringRef &Name) const |
| LookupSymbol - Get the symbol for. | |
| void | ClearSymbolValue (MCSymbol *Symbol) |
| void | SetSymbolValue (MCSymbol *Symbol, const MCValue &Value) |
| const MCValue * | GetSymbolValue (MCSymbol *Symbol) const |
| void * | Allocate (unsigned Size, unsigned Align=8) |
| void | Deallocate (void *Ptr) |
Definition at line 26 of file MCContext.h.
| MCContext::MCContext | ( | ) |
Definition at line 17 of file MCContext.cpp.
| MCContext::~MCContext | ( | ) |
Definition at line 20 of file MCContext.cpp.
CreateSymbol - Create a new symbol with the specified
| Name. | ||
| Name | - The symbol name, which must be unique across all symbols. |
Definition at line 25 of file MCContext.cpp.
References Entry.
GetOrCreateSymbol - Lookup the symbol inside with the specified
| Name. | If it exists, return it. If not, create a forward reference and return it. | |
| Name | - The symbol name, which must be unique across all symbols. |
Definition at line 34 of file MCContext.cpp.
References Entry.
Referenced by llvm::X86ATTAsmPrinter::GetPICBaseSymbol(), llvm::X86ATTAsmPrinter::LowerExternalSymbolOperand(), and llvm::X86ATTAsmPrinter::LowerGlobalAddressOperand().
CreateTemporarySymbol - Create a new temporary symbol with the specified
| Name. | ||
| Name | - The symbol name, for debugging purposes only, temporary symbols do not surive assembly. If non-empty the name must be unique across all symbols. |
Definition at line 42 of file MCContext.cpp.
References llvm::StringRef::empty(), and Entry.
LookupSymbol - Get the symbol for.
| Name,or | null. |
Definition at line 53 of file MCContext.cpp.
| void MCContext::ClearSymbolValue | ( | MCSymbol * | Symbol | ) |
ClearSymbolValue - Erase a value binding for
| Symbol,if | one exists. |
Definition at line 57 of file MCContext.cpp.
SetSymbolValue - Set the value binding for
| Symbol | to | |
| Value. |
Definition at line 61 of file MCContext.cpp.
GetSymbolValue - Return the current value for
| Symbol,or | null if none exists. |
Definition at line 65 of file MCContext.cpp.
Definition at line 85 of file MCContext.h.
References Align, and llvm::BumpPtrAllocator::Allocate().
Referenced by operator new(), and operator new[]().
| void llvm::MCContext::Deallocate | ( | void * | Ptr | ) | [inline] |