Remove stale TLI Module level pass registration
authorTeresa Johnson <tejohnson@google.com>
Sat, 7 Sep 2019 03:09:46 +0000 (03:09 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sat, 7 Sep 2019 03:09:46 +0000 (03:09 +0000)
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

llvm-svn: 371285

clang/lib/CodeGen/BackendUtil.cpp

index caa65e2..4a2f298 100644 (file)
@@ -1093,7 +1093,6 @@ void EmitAssemblyHelper::EmitAssemblyWithNewPassManager(
   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);