LLVM  4.0.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::JITSymbolFlags Class Reference

Flags for symbols in the JIT. More...

#include <JITSymbol.h>

Public Types

enum  FlagNames : UnderlyingType {
  None = 0, Weak = 1U << 0, Common = 1U << 1, Absolute = 1U << 2,
  Exported = 1U << 3
}
 
typedef uint8_t UnderlyingType
 

Public Member Functions

 JITSymbolFlags ()
 Default-construct a JITSymbolFlags instance. More...
 
 JITSymbolFlags (FlagNames Flags)
 Construct a JITSymbolFlags instance from the given flags. More...
 
bool isWeak () const
 Returns true is the Weak flag is set. More...
 
bool isCommon () const
 Returns true is the Weak flag is set. More...
 
bool isStrongDefinition () const
 
bool isExported () const
 Returns true is the Weak flag is set. More...
 
 operator UnderlyingType & ()
 

Static Public Member Functions

static JITSymbolFlags fromGlobalValue (const GlobalValue &GV)
 Construct a JITSymbolFlags value based on the flags of the given global value. More...
 
static JITSymbolFlags fromObjectSymbol (const object::BasicSymbolRef &Symbol)
 Construct a JITSymbolFlags value based on the flags of the given libobject symbol. More...
 

Detailed Description

Flags for symbols in the JIT.

Definition at line 36 of file JITSymbol.h.

Member Typedef Documentation

Definition at line 38 of file JITSymbol.h.

Member Enumeration Documentation

Enumerator
None 
Weak 
Common 
Absolute 
Exported 

Definition at line 40 of file JITSymbol.h.

Constructor & Destructor Documentation

llvm::JITSymbolFlags::JITSymbolFlags ( )
inline

Default-construct a JITSymbolFlags instance.

Definition at line 49 of file JITSymbol.h.

llvm::JITSymbolFlags::JITSymbolFlags ( FlagNames  Flags)
inline

Construct a JITSymbolFlags instance from the given flags.

Definition at line 52 of file JITSymbol.h.

Member Function Documentation

JITSymbolFlags llvm::JITSymbolFlags::fromGlobalValue ( const GlobalValue GV)
static
JITSymbolFlags llvm::JITSymbolFlags::fromObjectSymbol ( const object::BasicSymbolRef Symbol)
static
bool llvm::JITSymbolFlags::isCommon ( ) const
inline

Returns true is the Weak flag is set.

Definition at line 60 of file JITSymbol.h.

References Common.

Referenced by isStrongDefinition().

bool llvm::JITSymbolFlags::isExported ( ) const
inline

Returns true is the Weak flag is set.

Definition at line 69 of file JITSymbol.h.

References Exported.

bool llvm::JITSymbolFlags::isStrongDefinition ( ) const
inline

Definition at line 64 of file JITSymbol.h.

References isCommon(), and isWeak().

bool llvm::JITSymbolFlags::isWeak ( ) const
inline

Returns true is the Weak flag is set.

Definition at line 55 of file JITSymbol.h.

References Weak.

Referenced by isStrongDefinition(), and llvm::RuntimeDyldImpl::loadObjectImpl().

llvm::JITSymbolFlags::operator UnderlyingType & ( )
inline

Definition at line 73 of file JITSymbol.h.


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