aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/ArrayHandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/ArrayHandler.cc')
-rw-r--r--lib/CodeGen/ArrayHandler.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/ArrayHandler.cc b/lib/CodeGen/ArrayHandler.cc
index aa7230a..af16692 100644
--- a/lib/CodeGen/ArrayHandler.cc
+++ b/lib/CodeGen/ArrayHandler.cc
@@ -32,11 +32,6 @@ void ArrayHandler::setupExternalFunctions() {
FunctionType *MallocType = FunctionType::get(PointerType::getUnqual(*TheContext), MallocArgs, false);
MallocFunc = TheModule->getOrInsertFunction("malloc", MallocType);
-
- std::vector<Type*> FreeArgs;
- FreeArgs.push_back(PointerType::getUnqual(*TheContext));
- FunctionType *FreeType = FunctionType::get(Type::getVoidTy(*TheContext), FreeArgs, false);
- FreeFunc = TheModule->getOrInsertFunction("free", FreeType);
}
const ArrayMetadata *ArrayHandler::getMetadata(const std::string &Name) const {