7 #ifndef INCLUDE_RETDEC_BIN2LLVMIR_UTILS_DEBUG_H_
8 #define INCLUDE_RETDEC_BIN2LLVMIR_UTILS_DEBUG_H_
15 #include <llvm/IR/Module.h>
16 #include <llvm/Support/raw_ostream.h>
27 if (!debug_enabled) {} \
28 else std::cout << std::showbase
40 llvm::raw_string_ostream ss(str);
50 const llvm::Module* m,
52 const std::string& fileName =
"");
56 const std::string& fileName =
"control-flow.json");
Wrapper for conditional include of C++17 filesystem feature.
The frontend-end part of the decompiler.
void dumpModuleToFile(const llvm::Module *m, fs::path dirName, const std::string &fileName="")
Definition: debug.cpp:55
std::string llvmObjToString(const T *t)
Definition: debug.h:37
void dumpControFlowToJson(llvm::Module *m, fs::path dirName, const std::string &fileName="control-flow.json")
Definition: debug.cpp:328
Definition: archive_wrapper.h:19