]> granicus.if.org Git - llvm/commitdiff
Fix dynamically linked debug builds.
authorEli Friedman <eli.friedman@gmail.com>
Mon, 20 Jun 2016 02:48:11 +0000 (02:48 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 20 Jun 2016 02:48:11 +0000 (02:48 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273133 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LoopPass.cpp

index 5f9d326d121749749dcc1b10bb72efa83cfc5d99..84a5611e34d8cb30dbaedf1d002b60047e0db61c 100644 (file)
@@ -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"