Fixup for r263114. llvm::AnalysisBase<CallGraphAnalysis> should be declared as extern.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 10 Mar 2016 15:13:00 +0000 (15:13 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 10 Mar 2016 15:13:00 +0000 (15:13 +0000)
llvm-svn: 263119

llvm/include/llvm/Analysis/CallGraph.h

index 7feccef..05939db 100644 (file)
@@ -306,6 +306,9 @@ public:
   CallGraph run(Module &M) { return CallGraph(M); }
 };
 
+/// Instantiated in CallGraph.cpp
+extern template class llvm::AnalysisBase<CallGraphAnalysis>;
+
 /// \brief Printer pass for the \c CallGraphAnalysis results.
 class CallGraphPrinterPass : public PassBase<CallGraphPrinterPass> {
   raw_ostream &OS;