Update CFGPrinter -> CFGPrinterLegacyPass
authorTobias Grosser <tobias@grosser.es>
Fri, 16 Sep 2016 05:48:09 +0000 (05:48 +0000)
committerTobias Grosser <tobias@grosser.es>
Fri, 16 Sep 2016 05:48:09 +0000 (05:48 +0000)
.. to match recent changes in LLVM that broke the Polly compilation.

llvm-svn: 281705

polly/lib/Support/RegisterPasses.cpp

index 1eed95e..6eb468e 100644 (file)
@@ -274,7 +274,7 @@ void registerPollyPasses(llvm::legacy::PassManagerBase &PM) {
   PM.add(createBarrierNoopPass());
 
   if (CFGPrinter)
-    PM.add(llvm::createCFGPrinterPass());
+    PM.add(llvm::createCFGPrinterLegacyPassPass());
 
   if (Target == TARGET_GPU) {
     // Invariant load hoisting not yet supported by GPU code generation.