Lines Matching refs:DebugIR
1 //===--- DebugIR.cpp - Transform debug metadata to allow debugging IR -----===//
20 #include "DebugIR.h"
184 report_fatal_error("DebugIR pass supports only a signle compile unit per "
490 bool DebugIR::getSourceInfo(const Module &M) {
496 bool DebugIR::updateExtension(StringRef NewExtension) {
506 void DebugIR::generateFilename(std::unique_ptr<int> &fd) {
518 std::string DebugIR::getPath() {
526 void DebugIR::writeDebugBitcode(const Module *M, int *fd) {
545 void DebugIR::createDebugInfo(Module &M, std::unique_ptr<Module> &DisplayM) {
566 bool DebugIR::isMissingPath() { return Filename.empty() || Directory.empty(); }
568 bool DebugIR::runOnModule(Module &M) {
573 report_fatal_error("DebugIR unable to determine file name in input. "
575 "DICompileUnit, or construct DebugIR with "
599 bool DebugIR::runOnModule(Module &M, std::string &Path) {
607 char DebugIR::ID = 0;
608 INITIALIZE_PASS(DebugIR, "debug-ir", "Enable debugging IR", false, false)
613 return new DebugIR(HideDebugIntrinsics, HideDebugMetadata, Directory,
617 ModulePass *llvm::createDebugIRPass() { return new DebugIR(); }