summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2019-09-07 03:09:46 +0000
committerTeresa Johnson <tejohnson@google.com>2019-09-07 03:09:46 +0000
commitea61fcc2e46adc99b39525b77c98b101708386f4 (patch)
treed07d1ff2c3579481987129ac8d219ed8edc6236c /clang/lib/CodeGen/BackendUtil.cpp
parent9c27b59cec76abea4f3f9261f3ffa73450f239c6 (diff)
downloadbcm5719-llvm-ea61fcc2e46adc99b39525b77c98b101708386f4.tar.gz
bcm5719-llvm-ea61fcc2e46adc99b39525b77c98b101708386f4.zip
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 llvm-svn: 371285
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index caa65e2cee6..4a2f298d4b2 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -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);
OpenPOWER on IntegriCloud