Move types back to the 2.5 API.
[oota-llvm.git] / examples / ModuleMaker / ModuleMaker.cpp
index 1baa8c98efc5cc4d487d9b145d1e79aa6a8df4ff..fc487af056d4590f4699aa76514c33f70738c693 100644 (file)
@@ -31,7 +31,7 @@ int main() {
 
   // Create the main function: first create the type 'int ()'
   FunctionType *FT =
-    Context.getFunctionType(Type::Int32Ty, /*not vararg*/false);
+    FunctionType::get(Type::Int32Ty, /*not vararg*/false);
 
   // By passing a module as the last parameter to the Function constructor,
   // it automatically gets appended to the Module.