LLVM API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
llvm::GlobalObject Class Reference

#include <GlobalObject.h>

Inheritance diagram for llvm::GlobalObject:
Inheritance graph
[legend]
Collaboration diagram for llvm::GlobalObject:
Collaboration graph
[legend]

List of all members.

Public Member Functions

unsigned getAlignment () const
void setAlignment (unsigned Align)
bool hasSection () const
const char * getSection () const
void setSection (StringRef S)
bool hasComdat () const
const ComdatgetComdat () const
ComdatgetComdat ()
void setComdat (Comdat *C)
void copyAttributesFrom (const GlobalValue *Src) override

Static Public Member Functions

static bool classof (const Value *V)

Protected Member Functions

 GlobalObject (Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, LinkageTypes Linkage, const Twine &Name)

Protected Attributes

std::string Section
ComdatObjComdat

Detailed Description

Definition at line 26 of file GlobalObject.h.


Constructor & Destructor Documentation

llvm::GlobalObject::GlobalObject ( Type Ty,
ValueTy  VTy,
Use Ops,
unsigned  NumOps,
LinkageTypes  Linkage,
const Twine Name 
) [inline, protected]

Definition at line 30 of file GlobalObject.h.

References llvm::GlobalValue::setGlobalValueSubClassData().


Member Function Documentation

static bool llvm::GlobalObject::classof ( const Value V) [inline, static]

Reimplemented from llvm::GlobalValue.

Reimplemented in llvm::Function, and llvm::GlobalVariable.

Definition at line 56 of file GlobalObject.h.

References llvm::Value::FunctionVal, llvm::Value::getValueID(), and llvm::Value::GlobalVariableVal.

void GlobalObject::copyAttributesFrom ( const GlobalValue Src) [override, virtual]

Copy all additional attributes (those not needed to create a GlobalValue) from the GlobalValue Src to this one.

copyAttributesFrom - copy all additional attributes (those not needed to create a GlobalValue) from the GlobalValue Src to this one.

Reimplemented from llvm::GlobalValue.

Reimplemented in llvm::Function, and llvm::GlobalVariable.

Definition at line 84 of file Globals.cpp.

References setAlignment(), and setSection().

Reimplemented from llvm::GlobalValue.

Definition at line 49 of file GlobalObject.h.

References ObjComdat.

Referenced by hasComdat(), llvm::AssemblyWriter::printFunction(), and llvm::AssemblyWriter::printGlobal().

Reimplemented from llvm::GlobalValue.

Definition at line 50 of file GlobalObject.h.

References ObjComdat.

const char* llvm::GlobalObject::getSection ( ) const [inline]
bool llvm::GlobalObject::hasComdat ( ) const [inline]

Reimplemented from llvm::GlobalValue.

Definition at line 48 of file GlobalObject.h.

References getComdat().

Referenced by llvm::AssemblyWriter::printFunction(), and llvm::AssemblyWriter::printGlobal().

void llvm::GlobalObject::setComdat ( Comdat C) [inline]

Definition at line 51 of file GlobalObject.h.

References llvm::CallingConv::C, and ObjComdat.


Member Data Documentation

Definition at line 37 of file GlobalObject.h.

Referenced by getComdat(), and setComdat().

std::string llvm::GlobalObject::Section [protected]

Definition at line 36 of file GlobalObject.h.

Referenced by getSection(), and setSection().


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