Move types back to the 2.5 API.
[oota-llvm.git] / unittests / ExecutionEngine / JIT / JITTest.cpp
index 129f21f84fbe7eeed4a242817cacd7909bbcb4a2..abfe9313470623db1cef914af0f62d59c9590526 100644 (file)
@@ -31,8 +31,7 @@ namespace {
 
 Function *makeReturnGlobal(std::string Name, GlobalVariable *G, Module *M) {
   std::vector<const Type*> params;
-  const FunctionType *FTy =
-    getGlobalContext().getFunctionType(G->getType()->getElementType(),
+  const FunctionType *FTy = FunctionType::get(G->getType()->getElementType(),
                                               params, false);
   Function *F = Function::Create(FTy, GlobalValue::ExternalLinkage, Name, M);
   BasicBlock *Entry = BasicBlock::Create("entry", F);