LLVM API Documentation

Public Member Functions | Static Public Attributes
llvm::DebugIR Class Reference

#include <DebugIR.h>

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

List of all members.

Public Member Functions

const char * getPassName () const override
 DebugIR (bool HideDebugIntrinsics, bool HideDebugMetadata, llvm::StringRef Directory, llvm::StringRef Filename)
 DebugIR ()
bool runOnModule (llvm::Module &M, std::string &Path)
 Run pass on M and set Path to the source file path in the output module.
bool runOnModule (llvm::Module &M) override

Static Public Attributes

static char ID = 0

Detailed Description

Definition at line 23 of file DebugIR.h.


Constructor & Destructor Documentation

llvm::DebugIR::DebugIR ( bool  HideDebugIntrinsics,
bool  HideDebugMetadata,
llvm::StringRef  Directory,
llvm::StringRef  Filename 
) [inline]

Generate a file on disk to be displayed in a debugger. If Filename and Directory are empty, a temporary path will be generated.

Definition at line 49 of file DebugIR.h.

llvm::DebugIR::DebugIR ( ) [inline]

Modify input in-place; do not generate additional files, and do not hide any debug intrinsics/metadata that might be present.

Definition at line 58 of file DebugIR.h.


Member Function Documentation

const char* llvm::DebugIR::getPassName ( ) const [inline, override, virtual]

getPassName - Return a nice clean name for a pass. This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly.

Reimplemented from llvm::Pass.

Definition at line 45 of file DebugIR.h.

bool llvm::DebugIR::runOnModule ( llvm::Module M,
std::string &  Path 
)

Run pass on M and set Path to the source file path in the output module.

Definition at line 599 of file DebugIR.cpp.

bool llvm::DebugIR::runOnModule ( llvm::Module M) [override, virtual]

runOnModule - Virtual method overriden by subclasses to process the module being operated on.

Implements llvm::ModulePass.

Definition at line 568 of file DebugIR.cpp.

References DEBUG, llvm::Module::dump(), and llvm::report_fatal_error().


Member Data Documentation

char DebugIR::ID = 0 [static]

Definition at line 43 of file DebugIR.h.


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