[llvm] r273133 - Fix dynamically linked debug builds.

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 19 19:48:12 PDT 2016


Author: efriedma
Date: Sun Jun 19 21:48:11 2016
New Revision: 273133

URL: http://llvm.org/viewvc/llvm-project?rev=273133&view=rev
Log:
Fix dynamically linked debug builds.

On the surface, this might not look like it does anything... but
actually it brings in the declaration "extern template class
AnalysisManager<Loop>;", which suppresses the instantiation of the
constructor, which avoids the funny interaction between "extern
template" and -fvisibility-inlines-hidden.

Modified:
    llvm/trunk/lib/Analysis/LoopPass.cpp

Modified: llvm/trunk/lib/Analysis/LoopPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopPass.cpp?rev=273133&r1=273132&r2=273133&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LoopPass.cpp (original)
+++ llvm/trunk/lib/Analysis/LoopPass.cpp Sun Jun 19 21:48:11 2016
@@ -14,6 +14,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Analysis/LoopPass.h"
+#include "llvm/Analysis/LoopPassManager.h"
 #include "llvm/IR/IRPrintingPasses.h"
 #include "llvm/IR/LLVMContext.h"
 #include "llvm/IR/OptBisect.h"




More information about the llvm-commits mailing list