[opengtl-commits] [563] the second one is free memory... |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 563
Author: cyrille
Date: 2009-02-27 16:39:47 +0100 (Fri, 27 Feb 2009)
Log Message:
-----------
the second one is free memory...
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/CodeGenerator_p.cpp
trunk/OpenGTL/OpenGTL/GTLCore/CodeGenerator_p.h
Modified: trunk/OpenGTL/OpenGTL/GTLCore/CodeGenerator_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/CodeGenerator_p.cpp 2009-02-27 15:36:45 UTC (rev 562)
+++ trunk/OpenGTL/OpenGTL/GTLCore/CodeGenerator_p.cpp 2009-02-27 15:39:47 UTC (rev 563)
@@ -734,7 +734,7 @@
return new llvm::MallocInst( _type, _size, "", _bb);
}
-void CodeGenerator::allocateMemory( llvm::Value* _ptr, llvm::BasicBlock* _bb)
+void CodeGenerator::freeMemory( llvm::Value* _ptr, llvm::BasicBlock* _bb)
{
new llvm::FreeInst( _ptr, _bb );
}
Modified: trunk/OpenGTL/OpenGTL/GTLCore/CodeGenerator_p.h
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/CodeGenerator_p.h 2009-02-27 15:36:45 UTC (rev 562)
+++ trunk/OpenGTL/OpenGTL/GTLCore/CodeGenerator_p.h 2009-02-27 15:39:47 UTC (rev 563)
@@ -267,7 +267,7 @@
GTLCore::ExpressionResult callFunction( GenerationContext& _gc, llvm::BasicBlock* _bb, const GTLCore::Function* _function, const std::list<AST::Expression*>& m_arguments );
public:
static llvm::Value* allocateMemory( const llvm::Type* _type, llvm::Value* _size, llvm::BasicBlock* _bb);
- static void allocateMemory( llvm::Value* _ptr, llvm::BasicBlock* _bb);
+ static void freeMemory( llvm::Value* _ptr, llvm::BasicBlock* _bb);
private:
static llvm::Value* createComparisonExpression(llvm::BasicBlock* currentBlock, llvm::Value* lhs, const Type* lhsType, llvm::Value* rhs, const Type* rhsType, unsigned int unsignedIntegerPred, unsigned int signedIntegerPred, unsigned int floatPred);
static ExpressionResult createComparisonExpression( llvm::BasicBlock* currentBlock, ExpressionResult lhs, const Type* lhsType, ExpressionResult rhs, const Type* rhsType, unsigned int unsignedIntegerPred, unsigned int signedIntegerPred, unsigned int floatPred);