r371285 - Remove stale TLI Module level pass registration

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 6 20:09:46 PDT 2019


Author: tejohnson
Date: Fri Sep  6 20:09:46 2019
New Revision: 371285

URL: http://llvm.org/viewvc/llvm-project?rev=371285&view=rev
Log:
Remove stale TLI Module level pass registration

Clang patch to adapt to LLVM changes in D66428 that make the TLI
require a Function. There is no longer a module-level
TargetLibraryAnalysis, so remove its registration

Modified:
    cfe/trunk/lib/CodeGen/BackendUtil.cpp

Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=371285&r1=371284&r2=371285&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Fri Sep  6 20:09:46 2019
@@ -1093,7 +1093,6 @@ void EmitAssemblyHelper::EmitAssemblyWit
   std::unique_ptr<TargetLibraryInfoImpl> TLII(
       createTLII(TargetTriple, CodeGenOpts));
   FAM.registerPass([&] { return TargetLibraryAnalysis(*TLII); });
-  MAM.registerPass([&] { return TargetLibraryAnalysis(*TLII); });
 
   // Register all the basic analyses with the managers.
   PB.registerModuleAnalyses(MAM);




More information about the cfe-commits mailing list