Browse Source

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371285 91177308-0d34-0410-b5e6-96231b3b80d8
Teresa Johnson 6 years ago
parent
commit
f265ea92fd
1 changed files with 0 additions and 1 deletions
  1. 0 1
      lib/CodeGen/BackendUtil.cpp

+ 0 - 1
lib/CodeGen/BackendUtil.cpp

@@ -1093,7 +1093,6 @@ void EmitAssemblyHelper::EmitAssemblyWithNewPassManager(
   std::unique_ptr<TargetLibraryInfoImpl> TLII(
   std::unique_ptr<TargetLibraryInfoImpl> TLII(
       createTLII(TargetTriple, CodeGenOpts));
       createTLII(TargetTriple, CodeGenOpts));
   FAM.registerPass([&] { return TargetLibraryAnalysis(*TLII); });
   FAM.registerPass([&] { return TargetLibraryAnalysis(*TLII); });
-  MAM.registerPass([&] { return TargetLibraryAnalysis(*TLII); });
 
 
   // Register all the basic analyses with the managers.
   // Register all the basic analyses with the managers.
   PB.registerModuleAnalyses(MAM);
   PB.registerModuleAnalyses(MAM);