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