[PM] Update the examples to reflect the removal of the
[oota-llvm.git] / examples / Kaleidoscope / Chapter4 / toy.cpp
index ae52db82db3f848e1cb2c74fc4d7ddccb3bb7a12..f70c836ddb188e795de7136fb2a001f07f1e3462 100644 (file)
@@ -556,7 +556,7 @@ void *MCJITHelper::getPointerToFunction(Function *F) {
     }
 
     // Create a function pass manager for this engine
-    FunctionPassManager *FPM = new FunctionPassManager(OpenModule);
+    auto *FPM = new legacy::FunctionPassManager(OpenModule);
 
     // Set up the optimizer pipeline.  Start with registering info about how the
     // target lays out data structures.