LLVM API Documentation
#include <MachineDebugInfo.h>
Collaboration diagram for llvm::DISerializer:
Public Member Functions | |
DISerializer () | |
~DISerializer () | |
Module * | getModule () const |
void | setModule (Module *module) |
const PointerType * | getStrPtrType () |
const PointerType * | getEmptyStructPtrType () |
const StructType * | getTagType (DebugInfoDesc *DD) |
Constant * | getString (const std::string &String) |
GlobalVariable * | Serialize (DebugInfoDesc *DD) |
Definition at line 725 of file MachineDebugInfo.h.
llvm::DISerializer::DISerializer | ( | ) | [inline] |
Definition at line 738 of file MachineDebugInfo.h.
llvm::DISerializer::~DISerializer | ( | ) | [inline] |
Definition at line 746 of file MachineDebugInfo.h.
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.