LLVM API Documentation

llvm::DISerializer Class Reference

#include <MachineDebugInfo.h>

Collaboration diagram for llvm::DISerializer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DISerializer ()
 ~DISerializer ()
ModulegetModule () const
void setModule (Module *module)
const PointerTypegetStrPtrType ()
const PointerTypegetEmptyStructPtrType ()
const StructTypegetTagType (DebugInfoDesc *DD)
ConstantgetString (const std::string &String)
GlobalVariableSerialize (DebugInfoDesc *DD)

Detailed Description

DISerializer - This class is responsible for casting DebugInfoDesc objects into GlobalVariables.

Definition at line 725 of file MachineDebugInfo.h.


Constructor & Destructor Documentation

llvm::DISerializer::DISerializer (  )  [inline]

Definition at line 738 of file MachineDebugInfo.h.

llvm::DISerializer::~DISerializer (  )  [inline]

Definition at line 746 of file MachineDebugInfo.h.


Member Function Documentation

const PointerType * DISerializer::getEmptyStructPtrType (  ) 

getEmptyStructPtrType - Return a "{ }*" type.

Definition at line 1242 of file MachineDebugInfo.cpp.

References llvm::PointerType::get(), and llvm::StructType::get().

Module* llvm::DISerializer::getModule (  )  const [inline]

Definition at line 749 of file MachineDebugInfo.h.

Constant * DISerializer::getString ( const std::string &  String  ) 

getString - Construct the string as constant string global.

Definition at line 1281 of file MachineDebugInfo.cpp.

References llvm::ConstantArray::get(), llvm::ConstantPointerNull::get(), llvm::ConstantExpr::getCast(), getStrPtrType(), llvm::Value::getType(), llvm::GlobalValue::InternalLinkage, llvm::GlobalValue::setSection(), and Slot.

const PointerType * DISerializer::getStrPtrType (  ) 

getStrPtrType - Return a "sbyte *" type.

Definition at line 1230 of file MachineDebugInfo.cpp.

References llvm::PointerType::get(), and llvm::Type::SByteTy.

Referenced by getString().

const StructType * DISerializer::getTagType ( DebugInfoDesc DD  ) 

getTagType - Return the type describing the specified descriptor (via tag.)

Definition at line 1257 of file MachineDebugInfo.cpp.

References llvm::Module::addTypeName(), llvm::DIVisitor::ApplyToFields(), llvm::X86II::DD, llvm::StructType::get(), and Ty.

Referenced by Serialize().

GlobalVariable * DISerializer::Serialize ( DebugInfoDesc DD  ) 

Serialize - Recursively cast the specified descriptor into a GlobalVariable so that it can be serialized to a .bc or .ll file.

Definition at line 1306 of file MachineDebugInfo.cpp.

References llvm::DIVisitor::ApplyToFields(), llvm::X86II::DD, llvm::ConstantStruct::get(), getTagType(), GV, llvm::GlobalValue::setSection(), Slot, and Ty.

void llvm::DISerializer::setModule ( Module module  )  [inline]

Definition at line 750 of file MachineDebugInfo.h.


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