diff options
-rw-r--r-- | lib/Module/KModule.cpp | 3 | ||||
-rw-r--r-- | lib/Support/TreeStream.cpp | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/Module/KModule.cpp b/lib/Module/KModule.cpp index 57e0c4fe..f8cc2b60 100644 --- a/lib/Module/KModule.cpp +++ b/lib/Module/KModule.cpp @@ -10,6 +10,7 @@ // FIXME: This does not belong here. #include "../Core/Common.h" +#define DEBUG_TYPE "KModule" #include "klee/Internal/Module/KModule.h" #include "Passes.h" @@ -273,7 +274,7 @@ static void inlineChecks(Module *module, const char * functionName) { void KModule::addInternalFunction(const char* functionName){ Function* internalFunction = module->getFunction(functionName); if (!internalFunction) { - KLEE_DEBUG_WITH_TYPE("KModule", klee_warning( + KLEE_DEBUG(klee_warning( "Failed to add internal function %s. Not found.", functionName)); return ; } diff --git a/lib/Support/TreeStream.cpp b/lib/Support/TreeStream.cpp index 74ffe3ba..ef59b2a9 100644 --- a/lib/Support/TreeStream.cpp +++ b/lib/Support/TreeStream.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "TreeStreamWriter" #include "klee/Internal/ADT/TreeStream.h" #include "klee/Internal/Support/Debug.h" @@ -107,8 +108,7 @@ void TreeStreamWriter::readStream(TreeStreamID streamID, std::ifstream is(path.c_str(), std::ios::in | std::ios::binary); assert(is.good()); - KLEE_DEBUG_WITH_TYPE("TreeStreamWriter", - llvm::errs() << "finding chain for: " << streamID << "\n"); + KLEE_DEBUG(llvm::errs() << "finding chain for: " << streamID << "\n"); std::map<unsigned,unsigned> parents; std::vector<unsigned> roots; @@ -202,3 +202,4 @@ void TreeOStream::flush() { assert(writer); writer->flush(); } + |