[Bf-blender-cvs] [121189e560c] functions: disable some debug prints

Jacques Lucke noreply at git.blender.org
Sun Mar 10 19:24:01 CET 2019


Commit: 121189e560cdf26a39398f28dcdea0b28fd75a5e
Author: Jacques Lucke
Date:   Sun Mar 10 19:15:51 2019 +0100
Branches: functions
https://developer.blender.org/rB121189e560cdf26a39398f28dcdea0b28fd75a5e

disable some debug prints

===================================================================

M	source/blender/functions/backends/llvm/compile.cpp
M	source/blender/functions/backends/llvm/fgraph_ir_generation.cpp
M	source/blender/functions/types/lists.hpp

===================================================================

diff --git a/source/blender/functions/backends/llvm/compile.cpp b/source/blender/functions/backends/llvm/compile.cpp
index e8415bd06e5..b50bac7f106 100644
--- a/source/blender/functions/backends/llvm/compile.cpp
+++ b/source/blender/functions/backends/llvm/compile.cpp
@@ -17,7 +17,7 @@ namespace FN {
 		llvm::Function *main_function)
 	{
 		BLI_assert(!llvm::verifyModule(*module, &llvm::outs()));
-		module->print(llvm::outs(), nullptr);
+		// module->print(llvm::outs(), nullptr);
 
 		llvm::ExecutionEngine *ee = llvm::EngineBuilder(
 			std::unique_ptr<llvm::Module>(module)).create();
diff --git a/source/blender/functions/backends/llvm/fgraph_ir_generation.cpp b/source/blender/functions/backends/llvm/fgraph_ir_generation.cpp
index b0a83c3185d..cc47bfa9393 100644
--- a/source/blender/functions/backends/llvm/fgraph_ir_generation.cpp
+++ b/source/blender/functions/backends/llvm/fgraph_ir_generation.cpp
@@ -30,7 +30,6 @@ namespace FN {
 				}
 			}
 			m_required_sockets = this->find_required_sockets();
-			std::cout << "Required Sockets: " << m_required_sockets.size() << std::endl;
 		}
 
 		void build_ir(
diff --git a/source/blender/functions/types/lists.hpp b/source/blender/functions/types/lists.hpp
index 1fcd0f327d9..0d5e51183d7 100644
--- a/source/blender/functions/types/lists.hpp
+++ b/source/blender/functions/types/lists.hpp
@@ -15,7 +15,7 @@ namespace FN { namespace Types {
 	private:
 		SmallVector<T> m_data;
 
-		static constexpr bool DEBUG_ALLOCATIONS = true;
+		static constexpr bool DEBUG_ALLOCATIONS = false;
 
 		~List()
 		{



More information about the Bf-blender-cvs mailing list