retdec
Namespaces | Macros | Functions
debug.h File Reference

Debugging utilities. More...

#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <llvm/IR/Module.h>
#include <llvm/Support/raw_ostream.h>
#include "retdec/utils/filesystem.h"

Go to the source code of this file.

Namespaces

 retdec
 
 retdec::bin2llvmir
 

Macros

#define LOG
 

Functions

template<typename T >
std::string retdec::bin2llvmir::llvmObjToString (const T *t)
 
std::string retdec::bin2llvmir::llvmObjToString (const llvm::Module *t)
 
void retdec::bin2llvmir::dumpModuleToFile (const llvm::Module *m, fs::path dirName, const std::string &fileName="")
 
void retdec::bin2llvmir::dumpControFlowToJson (llvm::Module *m, fs::path dirName, const std::string &fileName="control-flow.json")
 

Detailed Description

Debugging utilities.

Macro Definition Documentation

◆ LOG

#define LOG
Value:
if (!debug_enabled) {} \
else std::cout << std::showbase
#define debug_enabled
Definition: ctor_dtor.cpp:15

Set debug_enabled to true to enable this LOG macro.