[PM] Update the examples to reflect the removal of the
[oota-llvm.git] / examples / Kaleidoscope / Chapter8 / toy.cpp
index 4cdadfba6a47b2099e064b438d52fc87e9642930..30d4669e19c16df844eeb6721a5c2192363a4b71 100644 (file)
@@ -855,7 +855,7 @@ static DICompositeType CreateFunctionType(unsigned NumArgs, DIFile Unit) {
 
 static Module *TheModule;
 static std::map<std::string, AllocaInst *> NamedValues;
-static FunctionPassManager *TheFPM;
+static legacy::FunctionPassManager *TheFPM;
 
 Value *ErrorV(const char *Str) {
   Error(Str);
@@ -1454,7 +1454,7 @@ int main() {
     exit(1);
   }
 
-  FunctionPassManager OurFPM(TheModule);
+  legacy::FunctionPassManager OurFPM(TheModule);
 
   // Set up the optimizer pipeline.  Start with registering info about how the
   // target lays out data structures.