Index: include/llvm/IR/OptBisect.h =================================================================== --- include/llvm/IR/OptBisect.h +++ include/llvm/IR/OptBisect.h @@ -20,6 +20,12 @@ namespace llvm { class Pass; +class Module; +class Function; +class BasicBlock; +class Loop; +class CallGraphSCC; +class Region; /// This class implements a mechanism to disable passes and individual /// optimizations at compile time based on a command line option @@ -58,6 +64,13 @@ unsigned LastBisectNum = 0; }; +extern template bool OptBisect::shouldRunPass(const Pass *, const Module &); +extern template bool OptBisect::shouldRunPass(const Pass *, const Function &); +extern template bool OptBisect::shouldRunPass(const Pass *, const BasicBlock &); +extern template bool OptBisect::shouldRunPass(const Pass *, const Loop &); +extern template bool OptBisect::shouldRunPass(const Pass *, const CallGraphSCC &); +extern template bool OptBisect::shouldRunPass(const Pass *, const Region &); + } // end namespace llvm #endif // LLVM_IR_OPTBISECT_H