[polly] r226159 - [PM] Track an LLVM API change by switching this code to directly create

Chandler Carruth chandlerc at gmail.com
Thu Jan 15 02:43:19 PST 2015


Author: chandlerc
Date: Thu Jan 15 04:43:18 2015
New Revision: 226159

URL: http://llvm.org/viewvc/llvm-project?rev=226159&view=rev
Log:
[PM] Track an LLVM API change by switching this code to directly create
the wrapper pass for TLI which is now separate from the core class.

Modified:
    polly/trunk/lib/CodeGen/PTXGenerator.cpp

Modified: polly/trunk/lib/CodeGen/PTXGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PTXGenerator.cpp?rev=226159&r1=226158&r2=226159&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PTXGenerator.cpp (original)
+++ polly/trunk/lib/CodeGen/PTXGenerator.cpp Thu Jan 15 04:43:18 2015
@@ -561,9 +561,7 @@ static bool createASMAsString(Module *Ne
   // Build up all of the passes that we want to do to the module.
   PassManager PM;
 
-  TargetLibraryInfo *TLI = new TargetLibraryInfo(TheTriple);
-  PM.add(TLI);
-
+  PM.add(new TargetLibraryInfoWrapperPass(TheTriple));
   PM.add(new DataLayoutPass(*Target.getDataLayout()));
   Target.addAnalysisPasses(PM);
 





More information about the llvm-commits mailing list