[PM] Update the examples to reflect the removal of the
[oota-llvm.git] / examples / Kaleidoscope / Chapter7 / toy.cpp
index 07b53add3b708247821848b24794782e49386e5a..82f083ac6e1155e8e6aad1a1b5e02c301b873aa5 100644 (file)
@@ -665,7 +665,7 @@ static PrototypeAST *ParseExtern() {
 static Module *TheModule;
 static IRBuilder<> Builder(getGlobalContext());
 static std::map<std::string, AllocaInst *> NamedValues;
-static FunctionPassManager *TheFPM;
+static legacy::FunctionPassManager *TheFPM;
 
 Value *ErrorV(const char *Str) {
   Error(Str);
@@ -1203,7 +1203,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.