1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[CG] Back out my pointless move ctor and add the explicit template

instantiation needed for the mingw dll build bot.

llvm-svn: 263114
This commit is contained in:
Chandler Carruth 2016-03-10 14:33:10 +00:00
parent 695222231c
commit 70e5a2e4ae
2 changed files with 3 additions and 1 deletions

View File

@ -312,7 +312,6 @@ class CallGraphPrinterPass : public PassBase<CallGraphPrinterPass> {
public: public:
explicit CallGraphPrinterPass(raw_ostream &OS) : OS(OS) {} explicit CallGraphPrinterPass(raw_ostream &OS) : OS(OS) {}
CallGraphPrinterPass(CallGraphPrinterPass &&Arg) : OS(Arg.OS) {}
PreservedAnalyses run(Module &M, AnalysisManager<Module> *AM); PreservedAnalyses run(Module &M, AnalysisManager<Module> *AM);
}; };

View File

@ -259,6 +259,9 @@ void CallGraphNode::replaceCallEdge(CallSite CS,
} }
} }
// Provide an explicit template instantiation for the static ID.
template class llvm::AnalysisBase<CallGraphAnalysis>;
PreservedAnalyses CallGraphPrinterPass::run(Module &M, PreservedAnalyses CallGraphPrinterPass::run(Module &M,
AnalysisManager<Module> *AM) { AnalysisManager<Module> *AM) {
AM->getResult<CallGraphAnalysis>(M).print(OS); AM->getResult<CallGraphAnalysis>(M).print(OS);